3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-04 02:18:49 +02: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,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);