]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Interworking: Do not share ANQP info if none was received
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 7 Jan 2013 16:41:51 +0000 (18:41 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 7 Jan 2013 16:41:51 +0000 (18:41 +0200)
Verify that the other BSS has actually received some valid ANQP
information before sharing the results from it. This fixes potential
issues with cases where some of the APs with the same HESSID has invalid
ANQP configuration.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

wpa_supplicant/interworking.c

index 019b8947c9b6815cd2b2e7896dc4682a9f484cdc..400b738b7d8e4b6c874c944f008fac7c3e6f5f1b 100644 (file)
@@ -1680,6 +1680,11 @@ interworking_match_anqp_info(struct wpa_supplicant *wpa_s, struct wpa_bss *bss)
                        continue;
                if (other->anqp == NULL)
                        continue;
+               if (other->anqp->roaming_consortium == NULL &&
+                   other->anqp->nai_realm == NULL &&
+                   other->anqp->anqp_3gpp == NULL &&
+                   other->anqp->domain_name == NULL)
+                       continue;
                if (!(other->flags & WPA_BSS_ANQP_FETCH_TRIED))
                        continue;
                if (os_memcmp(bss->hessid, other->hessid, ETH_ALEN) != 0)