diff options
author | John Crispin <john@phrozen.org> | 2019-05-23 10:27:24 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2019-05-24 11:26:44 +0200 |
commit | 25d16d124a5e249e947c0487678b61dcff25cf8b (patch) | |
tree | d4c7c19caffbf5807b7c10413cec24d61b465d1b /net/wireless/util.c | |
parent | 818e9dfa2c145c7b0d241c5c419f4b897a1af564 (diff) | |
download | linux-25d16d124a5e249e947c0487678b61dcff25cf8b.tar.bz2 |
mac80211: fix rate reporting inside cfg80211_calculate_bitrate_he()
The reported rate is not scaled down correctly. After applying this patch,
the function will behave just like the v/ht equivalents.
Signed-off-by: Shashidhar Lakkavalli <slakkavalli@datto.com>
Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/util.c')
-rw-r--r-- | net/wireless/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/util.c b/net/wireless/util.c index cf63b635afc0..b9d8ceb21327 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c @@ -1246,7 +1246,7 @@ static u32 cfg80211_calculate_bitrate_he(struct rate_info *rate) if (rate->he_dcm) result /= 2; - return result; + return result / 10000; } u32 cfg80211_calculate_bitrate(struct rate_info *rate) |