Skip to contentSkip to conversation

cfg80211: add bitrate for 20MHz MCS 9

PATCH RESEND Applied Thomas Pedersen 2 participants 2 messages Oct 31, 2016 – Nov 15, 2016 802.11 (including cfg80211/NL80211)

lore
Share & tools
lore
#0 lore raw

PATCH RESEND v2 1/1 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.

---
v2: add MCS 9 bitrate instead of capping at MCS 8

---
 net/wireless/util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/wireless/util.c +1 -1
index 32060f8..30fc320 100644
@@ -1163,7 +1163,7 @@ static u32 cfg80211_calculate_bitrate_vht(struct rate_info *rate)
 		   58500000,
 		   65000000,
 		   78000000,
-		   0,
+		   86500000,
 		},
 		{  13500000,
 		   27000000,
Signature · 1 line
2.10.0.297.gf6727b0
maintainer Applied
#1 lore raw
Quoted 5 lines · Thomas Pedersen

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.

applied.

johannes