aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/interworking.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-01-07 16:41:51 (GMT)
committerJouni Malinen <j@w1.fi>2013-01-07 16:41:51 (GMT)
commit569d43c7aea49827d6fd45618f09517ed4f3459f (patch)
treea3f42cb7fb18a620e7f87f702b843eb7cf897400 /wpa_supplicant/interworking.c
parentd1ec319f120392773ead91c21c2a50cce7e1ec25 (diff)
downloadhostap-569d43c7aea49827d6fd45618f09517ed4f3459f.zip
hostap-569d43c7aea49827d6fd45618f09517ed4f3459f.tar.gz
hostap-569d43c7aea49827d6fd45618f09517ed4f3459f.tar.bz2
Interworking: Do not share ANQP info if none was received
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>
Diffstat (limited to 'wpa_supplicant/interworking.c')
-rw-r--r--wpa_supplicant/interworking.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c
index 019b894..400b738 100644
--- a/wpa_supplicant/interworking.c
+++ b/wpa_supplicant/interworking.c
@@ -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)