diff options
author | Johannes Berg <johannes.berg@intel.com> | 2014-10-20 16:41:33 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-10-20 21:39:29 +0200 |
commit | 8fa74e3aa6398ffef3c52147c969c0f5f0a1244e (patch) | |
tree | 01b6138e17581a27d62e71a013bb85638abd9a7a /net/mac80211/rate.c | |
parent | b08cc24e0a24f8d67ba7d66dab43c40ed25a3f5c (diff) | |
parent | 11b2357d5dbce999803e9055f8c09829a8a87db4 (diff) |
Merge branch 'mac80211' into mac80211-next
This was needed to avoid conflicts in the minstrel changes.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/rate.c')
-rw-r--r-- | net/mac80211/rate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/rate.c b/net/mac80211/rate.c index 8fdadfd94ba8..6081329784dd 100644 --- a/net/mac80211/rate.c +++ b/net/mac80211/rate.c @@ -448,7 +448,7 @@ static void rate_fixup_ratelist(struct ieee80211_vif *vif, */ if (!(rates[0].flags & IEEE80211_TX_RC_MCS)) { u32 basic_rates = vif->bss_conf.basic_rates; - s8 baserate = basic_rates ? ffs(basic_rates - 1) : 0; + s8 baserate = basic_rates ? ffs(basic_rates) - 1 : 0; rate = &sband->bitrates[rates[0].idx]; |