]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Do not try to connect with zero-length SSID
authorJouni Malinen <jouni@codeaurora.org>
Mon, 8 Jun 2020 18:40:56 +0000 (21:40 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 8 Jun 2020 18:40:56 +0000 (21:40 +0300)
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>
wpa_supplicant/events.c

index 86eef1b81157cf06e23cb76db07dae04571c56f3..b93c62c8e05b4c0a02f9777c7ea2967683c7cb36 100644 (file)
@@ -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;
 }