mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-17 09:29:22 +01:00
wiphy: Use SHA256 AKM if available
This commit is contained in:
parent
76c62b0843
commit
962e2e8b2c
13
src/wiphy.c
13
src/wiphy.c
@ -1428,10 +1428,15 @@ static void mlme_associate_cmd(struct netdev *netdev)
|
||||
struct eapol_sm *sm = eapol_sm_new();
|
||||
|
||||
memset(&info, 0, sizeof(info));
|
||||
info.akm_suites =
|
||||
(network->ssid_security == SCAN_SSID_SECURITY_PSK) ?
|
||||
IE_RSN_AKM_SUITE_PSK :
|
||||
IE_RSN_AKM_SUITE_8021X;
|
||||
|
||||
if (network->ssid_security == SCAN_SSID_SECURITY_PSK)
|
||||
info.akm_suites =
|
||||
bss->sha256 ? IE_RSN_AKM_SUITE_PSK_SHA256 :
|
||||
IE_RSN_AKM_SUITE_PSK;
|
||||
else
|
||||
info.akm_suites =
|
||||
bss->sha256 ? IE_RSN_AKM_SUITE_8021X_SHA256 :
|
||||
IE_RSN_AKM_SUITE_8021X;
|
||||
|
||||
bss_get_supported_ciphers(bss, &pairwise_ciphers,
|
||||
&group_ciphers);
|
||||
|
Loading…
Reference in New Issue
Block a user