Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8fdd136f authored by Pedersen, Thomas's avatar Pedersen, Thomas Committed by Johannes Berg
Browse files

cfg80211: add bitrate for 20MHz MCS 9



Some drivers (ath10k) report MCS 9 @ 20MHz, which
technically isn't defined. To get more meaningful value
than 0 out of this however, just extrapolate a bitrate
from ratio of MCS 7 and 9 in channels where it is allowed.

Signed-off-by: default avatarThomas Pedersen <twp@qca.qualcomm.com>
[add a comment about it in the code]
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 6c18a6b4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1158,7 +1158,8 @@ static u32 cfg80211_calculate_bitrate_vht(struct rate_info *rate)
		   58500000,
		   65000000,
		   78000000,
		   0,
		/* not in the spec, but some devices use this: */
		   86500000,
		},
		{  13500000,
		   27000000,