]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix parsing of 40Mhz in injected radiotap header
authorSven Eckelmann <sven@narfation.org>
Wed, 24 Feb 2016 15:25:49 +0000 (16:25 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 5 Apr 2016 08:58:16 +0000 (10:58 +0200)
commit87e8fb56864e5fee3719f91c8adc7bc350ad9a44
tree37c10e7f54ba05aa31dfcaa882a1f8f6e622951e
parent8e3a47c04e8fdf30f191058887e7843c2bbae810
mac80211: fix parsing of 40Mhz in injected radiotap header

The MCS bandwidth part of the radiotap header is 2 bits wide. The full 2
bit have to compared against IEEE80211_RADIOTAP_MCS_BW_40 and not only if
the first bit is set. Otherwise IEEE80211_RADIOTAP_MCS_BW_40 can be
confused with IEEE80211_RADIOTAP_MCS_BW_20U.

Fixes: 94c6b086b674 ("mac80211: Parse legacy and HT rate in injected frames")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tx.c