diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c index d569acad8..a7e3bf28b 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)