summaryrefslogtreecommitdiff
path: root/net/wireless/util.c
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2019-05-23 11:27:24 +0300
committerJohannes Berg <johannes.berg@intel.com>2019-05-24 12:26:44 +0300
commit25d16d124a5e249e947c0487678b61dcff25cf8b (patch)
treed4c7c19caffbf5807b7c10413cec24d61b465d1b /net/wireless/util.c
parent818e9dfa2c145c7b0d241c5c419f4b897a1af564 (diff)
downloadlinux-25d16d124a5e249e947c0487678b61dcff25cf8b.tar.xz
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.c2
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)