diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-11-21 23:29:14 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-11-28 14:24:23 +0100 |
commit | 336004e29115e47253f7e7d007df9e1f9e73dcdd (patch) | |
tree | d5b716a03ef225bb985154525fb6b5a2a1949832 /net/mac80211/rate.c | |
parent | cfg80211: make WEXT compatibility unselectable (diff) | |
download | linux-336004e29115e47253f7e7d007df9e1f9e73dcdd.tar.xz linux-336004e29115e47253f7e7d007df9e1f9e73dcdd.zip |
mac80211: add more missing checks for VHT tx rates
Fixes a crash on attempting to calculate the frame duration for a VHT
packet (which needs to be handled by hw/driver instead).
Reported-by: Jouni Malinen <j@w1.fi>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/rate.c')
-rw-r--r-- | net/mac80211/rate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/rate.c b/net/mac80211/rate.c index 08ab7d6d1517..d53355b011f5 100644 --- a/net/mac80211/rate.c +++ b/net/mac80211/rate.c @@ -446,7 +446,8 @@ static void rate_fixup_ratelist(struct ieee80211_vif *vif, * * XXX: Should this check all retry rates? */ - if (!(rates[0].flags & IEEE80211_TX_RC_MCS)) { + if (!(rates[0].flags & + (IEEE80211_TX_RC_MCS | IEEE80211_TX_RC_VHT_MCS))) { u32 basic_rates = vif->bss_conf.basic_rates; s8 baserate = basic_rates ? ffs(basic_rates) - 1 : 0; |