aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/hs20_supplicant.c
diff options
context:
space:
mode:
authorASHUTOSH NARAYAN <ashutoshx.narayan@intel.com>2015-02-18 02:35:09 (GMT)
committerJouni Malinen <j@w1.fi>2015-02-21 14:07:53 (GMT)
commit185ada47705cf79d6c446e680e9ef1d20b90ba6d (patch)
tree4320d3d675c500b49b8e8b15aee7d58a42859153 /wpa_supplicant/hs20_supplicant.c
parent7fe7a3a51f31314df4e9a403ce2b9293e40ed4d9 (diff)
downloadhostap-185ada47705cf79d6c446e680e9ef1d20b90ba6d.zip
hostap-185ada47705cf79d6c446e680e9ef1d20b90ba6d.tar.gz
hostap-185ada47705cf79d6c446e680e9ef1d20b90ba6d.tar.bz2
HS 2.0: Add support to update the HS20 Capability List into the BSS
In addition, add support for returning the capability list through the BSS control interface command. Signed-off-by: ASHUTOSH NARAYAN <ashutoshx.narayan@intel.com>
Diffstat (limited to 'wpa_supplicant/hs20_supplicant.c')
-rw-r--r--wpa_supplicant/hs20_supplicant.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/hs20_supplicant.c b/wpa_supplicant/hs20_supplicant.c
index eb18ed2..b9cd681 100644
--- a/wpa_supplicant/hs20_supplicant.c
+++ b/wpa_supplicant/hs20_supplicant.c
@@ -380,6 +380,11 @@ void hs20_parse_rx_hs20_anqp_resp(struct wpa_supplicant *wpa_s,
wpa_msg(wpa_s, MSG_INFO, "RX-HS20-ANQP " MACSTR
" HS Capability List", MAC2STR(sa));
wpa_hexdump_ascii(MSG_DEBUG, "HS Capability List", pos, slen);
+ if (anqp) {
+ wpabuf_free(anqp->hs20_capability_list);
+ anqp->hs20_capability_list =
+ wpabuf_alloc_copy(pos, slen);
+ }
break;
case HS20_STYPE_OPERATOR_FRIENDLY_NAME:
wpa_msg(wpa_s, MSG_INFO, "RX-HS20-ANQP " MACSTR