diff options
author | Michal Kazior <michal.kazior@tieto.com> | 2013-12-02 05:54:07 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-12-02 09:42:16 -0500 |
commit | ddcc347b70f298f9d624cd0e250581d831d915fb (patch) | |
tree | b562736a73e2b416e725495d84d31f05491c3519 | |
parent | 1f3b8a2bdeccac8abe6817b7b70cea90c93ed3e4 (diff) |
mac80211: fix rx_nss calculation for drivers with hw rc
Drivers with hardware rate control were given
sta->rx_nss set to 0. This was because rx_nss
calculation procedure was protected by hw/sw rate
control check.
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r-- | net/mac80211/rate.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/rate.h b/net/mac80211/rate.h index 5dedc56c94db..32cdbd22c5f1 100644 --- a/net/mac80211/rate.h +++ b/net/mac80211/rate.h | |||
@@ -54,6 +54,8 @@ static inline void rate_control_rate_init(struct sta_info *sta) | |||
54 | struct ieee80211_supported_band *sband; | 54 | struct ieee80211_supported_band *sband; |
55 | struct ieee80211_chanctx_conf *chanctx_conf; | 55 | struct ieee80211_chanctx_conf *chanctx_conf; |
56 | 56 | ||
57 | ieee80211_sta_set_rx_nss(sta); | ||
58 | |||
57 | if (!ref) | 59 | if (!ref) |
58 | return; | 60 | return; |
59 | 61 | ||
@@ -67,8 +69,6 @@ static inline void rate_control_rate_init(struct sta_info *sta) | |||
67 | 69 | ||
68 | sband = local->hw.wiphy->bands[chanctx_conf->def.chan->band]; | 70 | sband = local->hw.wiphy->bands[chanctx_conf->def.chan->band]; |
69 | 71 | ||
70 | ieee80211_sta_set_rx_nss(sta); | ||
71 | |||
72 | ref->ops->rate_init(ref->priv, sband, &chanctx_conf->def, ista, | 72 | ref->ops->rate_init(ref->priv, sband, &chanctx_conf->def, ista, |
73 | priv_sta); | 73 | priv_sta); |
74 | rcu_read_unlock(); | 74 | rcu_read_unlock(); |