]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
SAE: Reorder SAE and FT-SAE AKM selection to prefer the FT option
authorJouni Malinen <jouni@codeaurora.org>
Tue, 26 Mar 2019 04:32:10 +0000 (06:32 +0200)
committerJouni Malinen <jouni@codeaurora.org>
Tue, 26 Mar 2019 20:50:17 +0000 (22:50 +0200)
If a network profile has both SAE and FT-SAE enabled, SAE was previously
picked (and used incorrectly as explained in the previous commit). This
is not ideal since use of FT protocol can speed up roaming within in
mobility domain. Reorder this checks so that FT-SAE is preferred over
SAE if both are enabled.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/wpa_supplicant.c

index b15877eaa1c57f4cf20e9bd6099e7c052f2969e6..1ccf7010a428e51f831860e6c3885240ee1a5041 100644 (file)
@@ -1463,12 +1463,12 @@ int wpa_supplicant_set_suites(struct wpa_supplicant *wpa_s,
                wpa_dbg(wpa_s, MSG_DEBUG, "RSN: using KEY_MGMT DPP");
 #endif /* CONFIG_DPP */
 #ifdef CONFIG_SAE
-       } else if (sel & WPA_KEY_MGMT_SAE) {
-               wpa_s->key_mgmt = WPA_KEY_MGMT_SAE;
-               wpa_dbg(wpa_s, MSG_DEBUG, "RSN: using KEY_MGMT SAE");
        } else if (sel & WPA_KEY_MGMT_FT_SAE) {
                wpa_s->key_mgmt = WPA_KEY_MGMT_FT_SAE;
                wpa_dbg(wpa_s, MSG_DEBUG, "RSN: using KEY_MGMT FT/SAE");
+       } else if (sel & WPA_KEY_MGMT_SAE) {
+               wpa_s->key_mgmt = WPA_KEY_MGMT_SAE;
+               wpa_dbg(wpa_s, MSG_DEBUG, "RSN: using KEY_MGMT SAE");
 #endif /* CONFIG_SAE */
 #ifdef CONFIG_IEEE80211W
        } else if (sel & WPA_KEY_MGMT_IEEE8021X_SHA256) {