diff options
author | Pedersen, Thomas <twp@qca.qualcomm.com> | 2016-10-31 21:28:40 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2016-11-15 16:34:00 +0300 |
commit | 8fdd136f2200e6b7237e7e48453f4a591d768e3e (patch) | |
tree | 9bcdd85914933f52d52145f368b50e8c19d6cb0d /net | |
parent | 6c18a6b4e79953ba38bc110e1e42ac45a951b25f (diff) | |
download | linux-8fdd136f2200e6b7237e7e48453f4a591d768e3e.tar.xz |
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: Thomas Pedersen <twp@qca.qualcomm.com>
[add a comment about it in the code]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/wireless/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/wireless/util.c b/net/wireless/util.c index 5ea12afc7706..659b507b347d 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c @@ -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, |