aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-04-08 14:28:23 (GMT)
committerJouni Malinen <j@w1.fi>2016-04-08 21:30:49 (GMT)
commit61c101186a9c7826ab2cbfe1a422ede206f7fb54 (patch)
tree586f9a59f76c86cf1f84b5b219d2ad836a603049 /wpa_supplicant
parent235c56e708770258042ce529a527af8ac1eb18f6 (diff)
downloadhostap-61c101186a9c7826ab2cbfe1a422ede206f7fb54.zip
hostap-61c101186a9c7826ab2cbfe1a422ede206f7fb54.tar.gz
hostap-61c101186a9c7826ab2cbfe1a422ede206f7fb54.tar.bz2
Extend VENDOR_ELEM parameters to cover non-P2P Probe Request frame
The new VENDOR_ELEM value 14 can now be used to add a vendor element into Probe Request frames used by non-P2P active scans. For example: VENDOR_ELEM_ADD 14 dd05001122330a and to clear that: VENDOR_ELEM_REMOVE 14 * Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/scan.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c
index 4dd0314..b2576e3 100644
--- a/wpa_supplicant/scan.c
+++ b/wpa_supplicant/scan.c
@@ -497,6 +497,13 @@ static struct wpabuf * wpa_supplicant_extra_ies(struct wpa_supplicant *wpa_s)
wpas_mbo_scan_ie(wpa_s, extra_ie);
#endif /* CONFIG_MBO */
+ if (wpa_s->vendor_elem[VENDOR_ELEM_PROBE_REQ]) {
+ struct wpabuf *buf = wpa_s->vendor_elem[VENDOR_ELEM_PROBE_REQ];
+
+ if (wpabuf_resize(&extra_ie, wpabuf_len(buf)) == 0)
+ wpabuf_put_buf(extra_ie, buf);
+ }
+
return extra_ie;
}