aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2020-06-08 18:40:56 (GMT)
committerJouni Malinen <j@w1.fi>2020-06-08 18:40:56 (GMT)
commitfcef598ea27ae15d00c6441f517885e4c316c645 (patch)
tree3966af376b6d0f7dabdeb19ad5213886267b2890
parent9a0807ce36fbc4d3fe4e75b7870518e7902a1b13 (diff)
downloadhostap-fcef598ea27ae15d00c6441f517885e4c316c645.zip
hostap-fcef598ea27ae15d00c6441f517885e4c316c645.tar.gz
hostap-fcef598ea27ae15d00c6441f517885e4c316c645.tar.bz2
Do not try to connect with zero-length SSID
It was possible to find a BSS to local network profile match for a BSS entry that has no known SSID when going through some of the SSID wildcard cases. At leas the OWE transition mode case without BSSID match could result in hitting this. Zero-length SSID (i.e., wildcard SSID) is not valid in (Re)Association Request frame, so such an association will fail. Skip such a BSS to avoid known-to-be-failing association attempts. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
-rw-r--r--wpa_supplicant/events.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 86eef1b..b93c62c 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -1451,6 +1451,13 @@ skip_assoc_disallow:
}
#endif /* CONFIG_SAE_PK */
+ if (bss->ssid_len == 0) {
+ if (debug_print)
+ wpa_dbg(wpa_s, MSG_DEBUG,
+ " skip - no SSID known for the BSS");
+ return false;
+ }
+
/* Matching configuration found */
return true;
}