From: Emmanuel Grumbach Date: Tue, 27 May 2008 17:00:11 +0000 (+0300) Subject: mac80211: sends HT IE to user level through wext X-Git-Tag: v2.6.27-rc1~969^2~337^2~52 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e623157b8d778a63736b0f41c04acc57c4f61ae0;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Tomas Winkler Signed-off-by: John W. Linville --- diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 9a264379d7b..6faa7006681 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;