summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2011-08-08 12:11:52 +0300
committerJohn W. Linville <linville@tuxdriver.com>2011-08-10 14:07:42 -0400
commit50d3dfb728e987790cf3d973aaf5fba2433771d8 (patch)
tree2466a1545beab6417db076a977da099d7d6694c4 /net
parentd2da587839b29ccc5b920fffdb848d7bdb36f11f (diff)
downloadop-kernel-dev-50d3dfb728e987790cf3d973aaf5fba2433771d8.zip
op-kernel-dev-50d3dfb728e987790cf3d973aaf5fba2433771d8.tar.gz
cfg80211/nl80211: Send AssocReq IEs to user space in AP mode
When user space SME/MLME (e.g., hostapd) is not used in AP mode, the IEs from the (Re)Association Request frame that was processed in firmware need to be made available for user space (e.g., RSN IE for hostapd). Allow this to be done with cfg80211_new_sta(). Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com> Acked-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r--net/wireless/nl80211.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 3b5dc91..ca76977 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -2236,6 +2236,10 @@ static int nl80211_send_station(struct sk_buff *msg, u32 pid, u32 seq,
}
nla_nest_end(msg, sinfoattr);
+ if (sinfo->assoc_req_ies)
+ NLA_PUT(msg, NL80211_ATTR_IE, sinfo->assoc_req_ies_len,
+ sinfo->assoc_req_ies);
+
return genlmsg_end(msg, hdr);
nla_put_failure:
OpenPOWER on IntegriCloud