mac80211: sends HT IE to user level through wext
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 27 May 2008 17:00:11 +0000 (20:00 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 3 Jun 2008 19:00:17 +0000 (15:00 -0400)
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>
net/mac80211/mlme.c

index 9a264379d7b180fc15b4f0b5b1b663ebeecda459..6faa7006681a7e6cc28c7e54215038d6c3e6507c 100644 (file)
@@ -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;