* [PATCH RESEND v2] cfg80211: add bitrate for 20MHz MCS 9
@ 2016-10-31 18:28 Thomas Pedersen
2016-11-15 13:34 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Pedersen @ 2016-10-31 18:28 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless, 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.
Signed-off-by: Thomas Pedersen <twp@qca.qualcomm.com>
---
v2: add MCS 9 bitrate instead of capping at MCS 8
---
net/wireless/util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/wireless/util.c b/net/wireless/util.c
index 32060f8..30fc320 100644
--- a/net/wireless/util.c
+++ b/net/wireless/util.c
@@ -1163,7 +1163,7 @@ static u32 cfg80211_calculate_bitrate_vht(struct rate_info *rate)
58500000,
65000000,
78000000,
- 0,
+ 86500000,
},
{ 13500000,
27000000,
--
2.10.0.297.gf6727b0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-11-15 13:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-31 18:28 [PATCH RESEND v2] cfg80211: add bitrate for 20MHz MCS 9 Thomas Pedersen
2016-11-15 13:34 ` Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).