summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2019-01-22 09:42:21 +0100
committerLubomir Rintel <lkundrak@v3.sk>2019-02-05 10:20:27 +0100
commit8c91e8deaab07ad51e36c4b22a1790d49cf74127 (patch)
tree9d160c45155f27e3d985e4bc91e9f1b45c6a406d
parent386e75ee04ed0b7cc7de6f459963138fed67b5fc (diff)
downloadNetworkManager-8c91e8deaab07ad51e36c4b22a1790d49cf74127.tar.gz
wifi/utils: complete key-mgmt=sae for SAE capable APs
Ordered before wpa-psk so that if the AP supports both WPA-PSK and SAE, SAE ends up preferred.
-rw-r--r--src/devices/wifi/nm-wifi-utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/devices/wifi/nm-wifi-utils.c b/src/devices/wifi/nm-wifi-utils.c
index 0f7836beb3..1eb13127a9 100644
--- a/src/devices/wifi/nm-wifi-utils.c
+++ b/src/devices/wifi/nm-wifi-utils.c
@@ -739,6 +739,12 @@ nm_wifi_utils_complete_connection (GBytes *ap_ssid,
* setting. Since there's so much configuration required for it, there's
* no way it can be automatically completed.
*/
+ } else if ( (key_mgmt && !strcmp (key_mgmt, "sae"))
+ || (ap_rsn_flags & NM_802_11_AP_SEC_KEY_MGMT_SAE)) {
+ g_object_set (s_wsec,
+ NM_SETTING_WIRELESS_SECURITY_KEY_MGMT, "sae",
+ NM_SETTING_WIRELESS_SECURITY_AUTH_ALG, "open",
+ NULL);
} else if ( (key_mgmt && !strcmp (key_mgmt, "wpa-psk"))
|| (ap_wpa_flags & NM_802_11_AP_SEC_KEY_MGMT_PSK)
|| (ap_rsn_flags & NM_802_11_AP_SEC_KEY_MGMT_PSK)) {