diff mbox

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

Message ID 1320761478-29133-3-git-send-email-arik@wizery.com
State Superseded
Headers show

Commit Message

Arik Nemtsov Nov. 8, 2011, 2:11 p.m. UTC
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@wizery.com>
Signed-off-by: Arik Nemtsov <arik@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 mbox

Patch

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,