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)
commitf66b60f6524c970d43af7a68dd50dcce289887e7
tree37c10e7f54ba05aa31dfcaa882a1f8f6e622951e
parent38de03d2a28925b489c11546804e2f5418cc17a4
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: dfdfc2beb0dd ("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
This page took 0.024591 seconds and 5 git commands to generate.