aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2011-12-10 19:01:36 (GMT)
committerJouni Malinen <j@w1.fi>2011-12-10 19:11:32 (GMT)
commit5ed3354617fc252d16079c11203062c14049ac55 (patch)
tree38e0d2f1ea5088e914d1676ad774e8f26264f8a1 /src
parent5b99e21a141931389308979069cd9c5f6bebe8bb (diff)
downloadhostap-5ed3354617fc252d16079c11203062c14049ac55.zip
hostap-5ed3354617fc252d16079c11203062c14049ac55.tar.gz
hostap-5ed3354617fc252d16079c11203062c14049ac55.tar.bz2
nl80211: Send Probe Response template to the driver
Pass the raw Probe Response template to kernel via netlink using the set_ap() driver callback. The data is sent as one of the Beacon attributes. Signed-hostap: Arik Nemtsov <arik@wizery.com> Signed-off-by: Arik Nemtsov <arik@wizery.com>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/driver_nl80211.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 50c4fa5..a7ae166 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -5162,6 +5162,9 @@ static int wpa_driver_nl80211_set_ap(void *priv,
NLA_PUT_U32(msg, NL80211_ATTR_DTIM_PERIOD, params->dtim_period);
NLA_PUT(msg, NL80211_ATTR_SSID, params->ssid_len,
params->ssid);
+ if (params->proberesp && params->proberesp_len)
+ NLA_PUT(msg, NL80211_ATTR_PROBE_RESP, params->proberesp_len,
+ params->proberesp);
switch (params->hide_ssid) {
case NO_SSID_HIDING:
NLA_PUT_U32(msg, NL80211_ATTR_HIDDEN_SSID,