diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-03-07 01:04:09 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-03-07 11:42:11 +0300 |
commit | ce1d834f9d213c9f76f693762710f7ecfbb69503 (patch) | |
tree | 3152f5cd22258473c76ddfc4eaff6c127399f463 /drivers/net/wireless/intel/iwlwifi/dvm/rs.c | |
parent | a3f9d596b1ea9cf7db482879a8aeb91f54a87e75 (diff) | |
download | linux-ce1d834f9d213c9f76f693762710f7ecfbb69503.tar.xz |
iwlwifi: dvm: remove usage of txrc->max_rate_idx
Just calculate it like mac80211 does today, so we can get rid
of the calculation in mac80211 for everyone else.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/dvm/rs.c')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/dvm/rs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/dvm/rs.c b/drivers/net/wireless/intel/iwlwifi/dvm/rs.c index ff44ebc5829d..ddcd8c2d66cd 100644 --- a/drivers/net/wireless/intel/iwlwifi/dvm/rs.c +++ b/drivers/net/wireless/intel/iwlwifi/dvm/rs.c @@ -2720,7 +2720,7 @@ static void rs_get_rate(void *priv_r, struct ieee80211_sta *sta, void *priv_sta, /* Get max rate if user set max rate */ if (lq_sta) { - lq_sta->max_rate_idx = txrc->max_rate_idx; + lq_sta->max_rate_idx = fls(txrc->rate_idx_mask) - 1; if ((sband->band == NL80211_BAND_5GHZ) && (lq_sta->max_rate_idx != -1)) lq_sta->max_rate_idx += IWL_FIRST_OFDM_RATE; |