58 lines
2.0 KiB
Diff
58 lines
2.0 KiB
Diff
diff -urN linux-3.0.42/include/net/cfg80211.h linux-3.0.42-patch/include/net/cfg80211.h
|
|
--- linux-3.0.42/include/net/cfg80211.h 2012-09-05 21:02:06.960467827 +0800
|
|
+++ linux-3.0.42-patch/include/net/cfg80211.h 2012-09-05 21:00:09.775049000 +0800
|
|
@@ -426,6 +426,7 @@
|
|
* @STATION_INFO_RX_BITRATE: @rxrate fields are filled
|
|
* @STATION_INFO_BSS_PARAM: @bss_param filled
|
|
* @STATION_INFO_CONNECTED_TIME: @connected_time filled
|
|
+ * @STATION_INFO_ASSOC_REQ_IES: @assoc_req_ies filled
|
|
*/
|
|
enum station_info_flags {
|
|
STATION_INFO_INACTIVE_TIME = 1<<0,
|
|
@@ -444,7 +445,8 @@
|
|
STATION_INFO_SIGNAL_AVG = 1<<13,
|
|
STATION_INFO_RX_BITRATE = 1<<14,
|
|
STATION_INFO_BSS_PARAM = 1<<15,
|
|
- STATION_INFO_CONNECTED_TIME = 1<<16
|
|
+ STATION_INFO_CONNECTED_TIME = 1<<16,
|
|
+ STATION_INFO_ASSOC_REQ_IES = 1<<17
|
|
};
|
|
|
|
/**
|
|
@@ -536,6 +538,11 @@
|
|
* This number should increase every time the list of stations
|
|
* changes, i.e. when a station is added or removed, so that
|
|
* userspace can tell whether it got a consistent snapshot.
|
|
+ * @assoc_req_ies: IEs from (Re)Association Request.
|
|
+ * This is used only when in AP mode with drivers that do not use
|
|
+ * user space MLME/SME implementation. The information is provided for
|
|
+ * the cfg80211_new_sta() calls to notify user space of the IEs.
|
|
+ * @assoc_req_ies_len: Length of assoc_req_ies buffer in octets.
|
|
*/
|
|
struct station_info {
|
|
u32 filled;
|
|
@@ -558,6 +565,9 @@
|
|
struct sta_bss_parameters bss_param;
|
|
|
|
int generation;
|
|
+
|
|
+ const u8 *assoc_req_ies;
|
|
+ size_t assoc_req_ies_len;
|
|
};
|
|
|
|
/**
|
|
diff -urN linux-3.0.42/net/wireless/nl80211.c linux-3.0.42-patch/net/wireless/nl80211.c
|
|
--- linux-3.0.42/net/wireless/nl80211.c 2012-09-05 21:03:25.528853240 +0800
|
|
+++ linux-3.0.42-patch/net/wireless/nl80211.c 2012-09-05 20:47:08.472824000 +0800
|
|
@@ -2213,6 +2213,10 @@
|
|
}
|
|
nla_nest_end(msg, sinfoattr);
|
|
|
|
+ if (sinfo->filled & STATION_INFO_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:
|