mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
network: Set SAE-PT into handshake
If the authenticator is SAE H2E capable, add the relevant PTs into the handshake_state to enable use of SAE H2E.
This commit is contained in:
parent
9c07741a0a
commit
cb5939f941
@ -425,6 +425,13 @@ static int network_set_handshake_secrets_psk(struct network *network,
|
||||
return -ENOKEY;
|
||||
|
||||
handshake_state_set_passphrase(hs, network->passphrase);
|
||||
|
||||
if (ie_rsnxe_capable(hs->authenticator_rsnxe,
|
||||
IE_RSNX_SAE_H2E)) {
|
||||
l_debug("Authenticator is SAE H2E capable");
|
||||
handshake_state_add_ecc_sae_pt(hs, network->sae_pt_19);
|
||||
handshake_state_add_ecc_sae_pt(hs, network->sae_pt_20);
|
||||
}
|
||||
} else {
|
||||
const uint8_t *psk = network_get_psk(network);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user