Prefer FT-SAE over FT-PSK if both are enabled
FT-SAE is considered stronger than FT-PSK, so prefer it over FT-PSK similarly to how SAE is preferred over WPA-PSK. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
853bd19f22
commit
9af1eea37a
1 changed files with 5 additions and 3 deletions
|
@ -1464,9 +1464,6 @@ int wpa_supplicant_set_suites(struct wpa_supplicant *wpa_s,
|
||||||
"WPA: Disable PMKSA caching for FT/802.1X connection");
|
"WPA: Disable PMKSA caching for FT/802.1X connection");
|
||||||
pmksa_cache_clear_current(wpa_s->wpa);
|
pmksa_cache_clear_current(wpa_s->wpa);
|
||||||
}
|
}
|
||||||
} else if (sel & WPA_KEY_MGMT_FT_PSK) {
|
|
||||||
wpa_s->key_mgmt = WPA_KEY_MGMT_FT_PSK;
|
|
||||||
wpa_dbg(wpa_s, MSG_DEBUG, "WPA: using KEY_MGMT FT/PSK");
|
|
||||||
#endif /* CONFIG_IEEE80211R */
|
#endif /* CONFIG_IEEE80211R */
|
||||||
#ifdef CONFIG_DPP
|
#ifdef CONFIG_DPP
|
||||||
} else if (sel & WPA_KEY_MGMT_DPP) {
|
} else if (sel & WPA_KEY_MGMT_DPP) {
|
||||||
|
@ -1481,6 +1478,11 @@ int wpa_supplicant_set_suites(struct wpa_supplicant *wpa_s,
|
||||||
wpa_s->key_mgmt = WPA_KEY_MGMT_SAE;
|
wpa_s->key_mgmt = WPA_KEY_MGMT_SAE;
|
||||||
wpa_dbg(wpa_s, MSG_DEBUG, "RSN: using KEY_MGMT SAE");
|
wpa_dbg(wpa_s, MSG_DEBUG, "RSN: using KEY_MGMT SAE");
|
||||||
#endif /* CONFIG_SAE */
|
#endif /* CONFIG_SAE */
|
||||||
|
#ifdef CONFIG_IEEE80211R
|
||||||
|
} else if (sel & WPA_KEY_MGMT_FT_PSK) {
|
||||||
|
wpa_s->key_mgmt = WPA_KEY_MGMT_FT_PSK;
|
||||||
|
wpa_dbg(wpa_s, MSG_DEBUG, "WPA: using KEY_MGMT FT/PSK");
|
||||||
|
#endif /* CONFIG_IEEE80211R */
|
||||||
#ifdef CONFIG_IEEE80211W
|
#ifdef CONFIG_IEEE80211W
|
||||||
} else if (sel & WPA_KEY_MGMT_IEEE8021X_SHA256) {
|
} else if (sel & WPA_KEY_MGMT_IEEE8021X_SHA256) {
|
||||||
wpa_s->key_mgmt = WPA_KEY_MGMT_IEEE8021X_SHA256;
|
wpa_s->key_mgmt = WPA_KEY_MGMT_IEEE8021X_SHA256;
|
||||||
|
|
Loading…
Reference in a new issue