aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/sme.c
diff options
context:
space:
mode:
authorCedric Izoard <Cedric.Izoard@ceva-dsp.com>2018-11-26 11:47:37 (GMT)
committerJouni Malinen <j@w1.fi>2018-11-26 17:09:25 (GMT)
commit18a0508a41e31f81ba4faf2fe63e0086d78842b5 (patch)
tree2dffcbca121e6d9191ef24ed306c9a85cc776c7c /wpa_supplicant/sme.c
parenta3023841485e0e925236497cc777149b8dde7f18 (diff)
downloadhostap-18a0508a41e31f81ba4faf2fe63e0086d78842b5.zip
hostap-18a0508a41e31f81ba4faf2fe63e0086d78842b5.tar.gz
hostap-18a0508a41e31f81ba4faf2fe63e0086d78842b5.tar.bz2
external-auth: Check key_mgmt when selecting SSID
When selecting SSID to start external authentication procedure also check the key_mgmt field as several network configuration may be defined for the same SSID/BSSID pair. The external authentication mechanism is only available for SAE. Signed-off-by: Cedric Izoard <cedric.izoard@ceva-dsp.com>
Diffstat (limited to 'wpa_supplicant/sme.c')
-rw-r--r--wpa_supplicant/sme.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c
index d569aca..a7e3bf2 100644
--- a/wpa_supplicant/sme.c
+++ b/wpa_supplicant/sme.c
@@ -958,7 +958,8 @@ static void sme_handle_external_auth_start(struct wpa_supplicant *wpa_s,
for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) {
if (!wpas_network_disabled(wpa_s, ssid) &&
ssid_str_len == ssid->ssid_len &&
- os_memcmp(ssid_str, ssid->ssid, ssid_str_len) == 0)
+ os_memcmp(ssid_str, ssid->ssid, ssid_str_len) == 0 &&
+ (ssid->key_mgmt & WPA_KEY_MGMT_SAE))
break;
}
if (ssid)