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

Arik Nemtsov arik
Tue Nov 8 06:11:18 PST 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-off-by: Guy Eilam <guy at wizery.com>
Signed-off-by: Arik Nemtsov <arik at wizery.com>
---
v1->3:
send probe response data to kernel the set_ap() driver callback

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 1e66c72..7a9a3f8 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