aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/bss.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2018-04-16 10:16:39 (GMT)
committerJouni Malinen <j@w1.fi>2018-04-17 13:40:42 (GMT)
commit6a8a04d7429a2b5791aba3d7ee777ad7c683a777 (patch)
tree163b989d34409c18820d1d2998d548b307c341c2 /wpa_supplicant/bss.c
parent37547ad63c9df61ce6899675028594da2527efef (diff)
downloadhostap-6a8a04d7429a2b5791aba3d7ee777ad7c683a777.zip
hostap-6a8a04d7429a2b5791aba3d7ee777ad7c683a777.tar.gz
hostap-6a8a04d7429a2b5791aba3d7ee777ad7c683a777.tar.bz2
HS 2.0: Add fetching of Operator Icon Metadata ANQP-element
This extends wpa_supplicant Hotspot 2.0 ANQP routines to allow the Operator Icon Metadata ANQP-element to be fetched with "ANQP_GET <bssid> hs20:12". The result is available in the new hs20_operator_icon_metadata entry in the "BSS <bssid>" output. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'wpa_supplicant/bss.c')
-rw-r--r--wpa_supplicant/bss.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/bss.c b/wpa_supplicant/bss.c
index 708b58a..5aa07ea 100644
--- a/wpa_supplicant/bss.c
+++ b/wpa_supplicant/bss.c
@@ -102,6 +102,7 @@ static struct wpa_bss_anqp * wpa_bss_anqp_clone(struct wpa_bss_anqp *anqp)
ANQP_DUP(hs20_connection_capability);
ANQP_DUP(hs20_operating_class);
ANQP_DUP(hs20_osu_providers_list);
+ ANQP_DUP(hs20_operator_icon_metadata);
#endif /* CONFIG_HS20 */
#undef ANQP_DUP
@@ -185,6 +186,7 @@ static void wpa_bss_anqp_free(struct wpa_bss_anqp *anqp)
wpabuf_free(anqp->hs20_connection_capability);
wpabuf_free(anqp->hs20_operating_class);
wpabuf_free(anqp->hs20_osu_providers_list);
+ wpabuf_free(anqp->hs20_operator_icon_metadata);
#endif /* CONFIG_HS20 */
os_free(anqp);