summaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2008-05-27 20:00:11 +0300
committerJohn W. Linville <linville@tuxdriver.com>2008-06-03 15:00:17 -0400
commite623157b8d778a63736b0f41c04acc57c4f61ae0 (patch)
treebae259fb2cac86b3ac807b98cd69852ca5cb90d2 /net/mac80211
parent43d01c563d271260c1e4fe0a9383c47fae96887f (diff)
downloadblackbird-op-linux-e623157b8d778a63736b0f41c04acc57c4f61ae0.tar.gz
blackbird-op-linux-e623157b8d778a63736b0f41c04acc57c4f61ae0.zip
mac80211: sends HT IE to user level through wext
This patch adds HT IE in the scan list that is returned to user level through wext. This is useful to let wpa_supplicant if a bss supports 11n or not: WEP and TKIP are not supported in 11n. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/mlme.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 9a264379d7b1..6faa7006681a 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -4128,6 +4128,14 @@ ieee80211_sta_scan_result(struct net_device *dev,
bss->rsn_ie);
}
+ if (bss && bss->ht_ie) {
+ memset(&iwe, 0, sizeof(iwe));
+ iwe.cmd = IWEVGENIE;
+ iwe.u.data.length = bss->ht_ie_len;
+ current_ev = iwe_stream_add_point(current_ev, end_buf, &iwe,
+ bss->ht_ie);
+ }
+
if (bss && bss->supp_rates_len > 0) {
/* display all supported rates in readable format */
char *p = current_ev + IW_EV_LCP_LEN;
OpenPOWER on IntegriCloud