[PATCH v4 3/3] driver_nl80211: send probe response data to kernel

Arik Nemtsov arik at wizery.com
Thu Nov 10 04:33:25 EST 2011


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
parameters.

Signed-hostap: Arik Nemtsov <arik at wizery.com>
Signed-off-by: Arik Nemtsov <arik at wizery.com>
---
 src/drivers/driver_nl80211.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 64f8995..d12b0d2 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -4357,6 +4357,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_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,
-- 
1.7.5.4



More information about the HostAP mailing list