Skip to content

Commit

Permalink
mac80211: Use the HT capabilities from the IE instead of the station'…
Browse files Browse the repository at this point in the history
…s caps.

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Sujith authored and John W. Linville committed Nov 25, 2008
1 parent 97b777d commit f16f33d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/ht.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit f16f33d

Please sign in to comment.