summaryrefslogtreecommitdiff
path: root/net/mac80211/rate.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-12-27 17:26:42 (GMT)
committerJohannes Berg <johannes.berg@intel.com>2013-02-15 08:41:31 (GMT)
commit8921d04e8df7475d733d853564bdb001e83bf33f (patch)
tree44961c6570025b439e7f6b905819d6e54e2d6b43 /net/mac80211/rate.h
parent7bf9b9a0f0372d45b581f00173505fb76a9c5d23 (diff)
downloadlinux-8921d04e8df7475d733d853564bdb001e83bf33f.tar.xz
mac80211: track number of spatial streams
With VHT, a station can change the number of spatial streams it can receive on the fly, not unlike spatial multiplexing in HT. Prepare for that by tracking the maximum number of spatial streams it can receive when the connection is established. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/rate.h')
-rw-r--r--net/mac80211/rate.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/rate.h b/net/mac80211/rate.h
index 301386d..d35a5dd 100644
--- a/net/mac80211/rate.h
+++ b/net/mac80211/rate.h
@@ -68,6 +68,8 @@ static inline void rate_control_rate_init(struct sta_info *sta)
sband = local->hw.wiphy->bands[chanctx_conf->def.chan->band];
rcu_read_unlock();
+ ieee80211_sta_set_rx_nss(sta);
+
ref->ops->rate_init(ref->priv, sband, ista, priv_sta);
set_sta_flag(sta, WLAN_STA_RATE_CONTROL);
}