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

login
register
mail settings
Submitter Arik Nemtsov
Date Nov. 10, 2011, 9:33 a.m.
Message ID <1320917605-2806-3-git-send-email-arik@wizery.com>
Download mbox | patch
Permalink /patch/124833/
State Accepted
Commit 5ed3354617fc252d16079c11203062c14049ac55
Headers show

Comments

Arik Nemtsov - Nov. 10, 2011, 9:33 a.m.
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@wizery.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
---
 src/drivers/driver_nl80211.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
Jouni Malinen - Dec. 10, 2011, 7:19 p.m.
On Thu, Nov 10, 2011 at 11:33:25AM +0200, Arik Nemtsov wrote:
> 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.

Thanks, applied.

Patch

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,