aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/interworking.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2012-10-03 11:17:41 (GMT)
committerJouni Malinen <j@w1.fi>2012-10-03 11:17:41 (GMT)
commit485e3a92285c8c6da95427d4a2b633e3c24a8a5e (patch)
tree9a533b7a62cda9e20b2f4a83353c2d7553a0c17d /wpa_supplicant/interworking.c
parent2edcd5046a8e090de69e162088925317393eb66b (diff)
downloadhostap-485e3a92285c8c6da95427d4a2b633e3c24a8a5e.zip
hostap-485e3a92285c8c6da95427d4a2b633e3c24a8a5e.tar.gz
hostap-485e3a92285c8c6da95427d4a2b633e3c24a8a5e.tar.bz2
Interworking: Unshare ANQP results on explicit ANQP requests
When ANQP_GET or HS20_ANQP_GET is used to request ANQP information, unshare the ANQP information (i.e., create a per-BSS copy of it) to make sure the information from the specified BSS is available in case the APs provide different information within HESSID. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/interworking.c')
-rw-r--r--wpa_supplicant/interworking.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c
index 8e870f6..6281c73 100644
--- a/wpa_supplicant/interworking.c
+++ b/wpa_supplicant/interworking.c
@@ -1725,8 +1725,10 @@ int anqp_send_req(struct wpa_supplicant *wpa_s, const u8 *dst,
freq = wpa_s->assoc_freq;
bss = wpa_bss_get_bssid(wpa_s, dst);
- if (bss)
+ if (bss) {
+ wpa_bss_anqp_unshare_alloc(bss);
freq = bss->freq;
+ }
if (freq <= 0)
return -1;