3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-30 14:22:37 +01:00

wiphy: Use SHA256 AKM if available

This commit is contained in:
Denis Kenzior 2016-02-10 13:20:46 -06:00
parent 76c62b0843
commit 962e2e8b2c

View File

@ -1428,9 +1428,14 @@ static void mlme_associate_cmd(struct netdev *netdev)
struct eapol_sm *sm = eapol_sm_new();
memset(&info, 0, sizeof(info));
if (network->ssid_security == SCAN_SSID_SECURITY_PSK)
info.akm_suites =
(network->ssid_security == SCAN_SSID_SECURITY_PSK) ?
IE_RSN_AKM_SUITE_PSK :
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,