diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-12-27 12:55:36 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-02-15 03:41:32 -0500 |
commit | 0af83d3df5863224336a18c24a14fda542b712f5 (patch) | |
tree | fa6a365edab208a78941ef80084afc0aaca87813 /net/mac80211/ht.c | |
parent | 8921d04e8df7475d733d853564bdb001e83bf33f (diff) |
mac80211: handle VHT operating mode notification
Handle the operating mode notification action frame.
When the supported streams or the bandwidth change
let the driver and rate control algorithm know.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/ht.c')
-rw-r--r-- | net/mac80211/ht.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/ht.c b/net/mac80211/ht.c index a64b4f0d373f..797969bc26e1 100644 --- a/net/mac80211/ht.c +++ b/net/mac80211/ht.c | |||
@@ -212,6 +212,10 @@ bool ieee80211_ht_cap_ie_to_sta_ht_cap(struct ieee80211_sub_if_data *sdata, | |||
212 | changed = true; | 212 | changed = true; |
213 | sta->sta.bandwidth = bw; | 213 | sta->sta.bandwidth = bw; |
214 | 214 | ||
215 | sta->cur_max_bandwidth = | ||
216 | ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 ? | ||
217 | IEEE80211_STA_RX_BW_40 : IEEE80211_STA_RX_BW_20; | ||
218 | |||
215 | return changed; | 219 | return changed; |
216 | } | 220 | } |
217 | 221 | ||