aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2018-12-07 23:11:44 (GMT)
committerJouni Malinen <j@w1.fi>2018-12-08 12:06:58 (GMT)
commit9ce2015a974a6fd8632db42e438f3fc3e925455c (patch)
treec454a107a5b1dc292aae131227c66741c6d26601 /wpa_supplicant
parentdfd1b69de257c27fa070d4ba5f11e8270896b54a (diff)
downloadhostap-9ce2015a974a6fd8632db42e438f3fc3e925455c.zip
hostap-9ce2015a974a6fd8632db42e438f3fc3e925455c.tar.gz
hostap-9ce2015a974a6fd8632db42e438f3fc3e925455c.tar.bz2
HS 2.0: Allocate enough buffer for HS 2.0 Indication element for scan
The HS 2.0 Indication element can be up to 9 octets in length, so add two more octets to the minimum extra_ie buffer size for scanning. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c
index be328de..52b521f 100644
--- a/wpa_supplicant/scan.c
+++ b/wpa_supplicant/scan.c
@@ -581,7 +581,7 @@ static struct wpabuf * wpa_supplicant_extra_ies(struct wpa_supplicant *wpa_s)
#endif /* CONFIG_WPS */
#ifdef CONFIG_HS20
- if (wpa_s->conf->hs20 && wpabuf_resize(&extra_ie, 7) == 0)
+ if (wpa_s->conf->hs20 && wpabuf_resize(&extra_ie, 9) == 0)
wpas_hs20_add_indication(extra_ie, -1, 0);
#endif /* CONFIG_HS20 */