aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/sme.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2018-04-17 14:22:56 (GMT)
committerJouni Malinen <j@w1.fi>2018-04-17 22:12:25 (GMT)
commit4204669c69b77bcd82bf5471a8359eb9f0dbf88c (patch)
treee0b323c2afa564f286f8d6f381f9417570e8d1f5 /wpa_supplicant/sme.c
parentad5704631ab1b7738767216f05b48c3f6d764d8a (diff)
downloadhostap-4204669c69b77bcd82bf5471a8359eb9f0dbf88c.zip
hostap-4204669c69b77bcd82bf5471a8359eb9f0dbf88c.tar.gz
hostap-4204669c69b77bcd82bf5471a8359eb9f0dbf88c.tar.bz2
HS 2.0: Add Roaming Consortium Selection element into AssocReq
This makes wpa_supplicant add Hotspot 2.0 Roaming Consortium Selection element into (Re)Association Request frames if the network profile includes roaming_consortium_selection parameter. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'wpa_supplicant/sme.c')
-rw-r--r--wpa_supplicant/sme.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c
index 8481b9a..97f2d0b 100644
--- a/wpa_supplicant/sme.c
+++ b/wpa_supplicant/sme.c
@@ -500,12 +500,13 @@ static void sme_send_authentication(struct wpa_supplicant *wpa_s,
if (is_hs20_network(wpa_s, ssid, bss)) {
struct wpabuf *hs20;
- hs20 = wpabuf_alloc(20);
+ hs20 = wpabuf_alloc(20 + MAX_ROAMING_CONS_OI_LEN);
if (hs20) {
int pps_mo_id = hs20_get_pps_mo_id(wpa_s, ssid);
size_t len;
wpas_hs20_add_indication(hs20, pps_mo_id);
+ wpas_hs20_add_roam_cons_sel(hs20, ssid);
len = sizeof(wpa_s->sme.assoc_req_ie) -
wpa_s->sme.assoc_req_ie_len;
if (wpabuf_len(hs20) <= len) {