]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
OWE: Allow BSS entry with different SSID to be used in transition mode
authorJouni Malinen <j@w1.fi>
Sun, 8 Mar 2020 09:29:45 +0000 (11:29 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 8 Mar 2020 14:16:11 +0000 (16:16 +0200)
Similarly to the wpa_supplicant_select_config() case,
wpa_get_beacon_ie() needs to handle the special case for OWE transition
mode where the SSID in the network profile does not match the SSID of
the OWE BSS (that has a hidden, random SSID). Accept such a BSS in case
the current scan results needs to be fetched for verifying EAPOL-Key msg
3/4 IEs.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/wpas_glue.c

index 7162f8f1fe7cd51ae1435e1439130a44330f2862..39b05b2b902a47fd1ade02c127c8d85d72b9017f 100644 (file)
@@ -398,6 +398,13 @@ static int wpa_get_beacon_ie(struct wpa_supplicant *wpa_s)
                        curr = bss;
                        break;
                }
+#ifdef CONFIG_OWE
+               if (ssid && (ssid->key_mgmt & WPA_KEY_MGMT_OWE) &&
+                   (bss->flags & WPA_BSS_OWE_TRANSITION)) {
+                       curr = bss;
+                       break;
+               }
+#endif /* CONFIG_OWE */
        }
 
        if (curr) {