mac80211: Use the HT capabilities from the IE instead of the station's caps.
authorSujith <Sujith.Manoharan@atheros.com>
Fri, 14 Nov 2008 10:57:53 +0000 (16:27 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 25 Nov 2008 21:41:36 +0000 (16:41 -0500)
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ht.c

index 3e231d7..a1eed70 100644 (file)
@@ -36,7 +36,7 @@ void ieee80211_ht_cap_ie_to_sta_ht_cap(struct ieee80211_supported_band *sband,
 
        ht_cap->ht_supported = true;
 
-       ht_cap->cap = ht_cap->cap & sband->ht_cap.cap;
+       ht_cap->cap = le16_to_cpu(ht_cap_ie->cap_info) & sband->ht_cap.cap;
        ht_cap->cap &= ~IEEE80211_HT_CAP_SM_PS;
        ht_cap->cap |= sband->ht_cap.cap & IEEE80211_HT_CAP_SM_PS;