From 6b12cd44ae43e7df40cfdd964ce3fd6a664cc0b1 Mon Sep 17 00:00:00 2001 From: Peng Xu Date: Mon, 30 Jan 2017 14:57:38 -0800 Subject: [PATCH] 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. Change-Id: Ia54fce85b570715e705f67bd463c4a219ff71af2 CRs-fixed: 1116687 Signed-off-by: Thomas Pedersen Cc: Johannes Berg Cc: greearb@candelatech.com Cc: Thomas Pedersen Patch-mainline: linux-wireless @ 09/10/16, 23:35 Signed-off-by: Peng Xu --- 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 ef394e8a42bc..00f5cededd38 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c @@ -1080,7 +1080,7 @@ static u32 cfg80211_calculate_bitrate_vht(struct rate_info *rate) 58500000, 65000000, 78000000, - 0, + 86500000, }, { 13500000, 27000000,