Skip to content

Commit 842be75

Browse files
jmberg-inteldavem330
authored andcommitted
cfg80211: make RATE_INFO_BW_20 the default
Due to the way I did the RX bitrate conversions in mac80211 with spatch, going setting flags to setting the value, many drivers now don't set the bandwidth value for 20 MHz, since with the flags it wasn't necessary to (there was no 20 MHz flag, only the others.) Rather than go through and try to fix up all the drivers, instead renumber the enum so that 20 MHz, which is the typical bandwidth, actually has the value 0, making those drivers all work again. If VHT was hit used with a driver not reporting it, e.g. iwlmvm, this manifested in hitting the bandwidth warning in cfg80211_calculate_bitrate_vht(). Reported-by: Linus Torvalds <torvalds@linux-foundation.org> Tested-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 2f46093 commit 842be75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/net/cfg80211.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,9 +1013,9 @@ enum rate_info_flags {
10131013
* @RATE_INFO_BW_160: 160 MHz bandwidth
10141014
*/
10151015
enum rate_info_bw {
1016+
RATE_INFO_BW_20 = 0,
10161017
RATE_INFO_BW_5,
10171018
RATE_INFO_BW_10,
1018-
RATE_INFO_BW_20,
10191019
RATE_INFO_BW_40,
10201020
RATE_INFO_BW_80,
10211021
RATE_INFO_BW_160,

0 commit comments

Comments
 (0)