diff options
author | John Crispin | 2019-05-23 10:27:24 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2019-07-14 08:11:04 +0200 |
commit | bc84982f977daa7116b402bb3c5760731305456f (patch) | |
tree | 060d895e5a80952017af0d809fdce7c901a25145 /net/wireless/util.c | |
parent | samples, bpf: suppress compiler warning (diff) | |
download | kernel-qcow2-linux-bc84982f977daa7116b402bb3c5760731305456f.tar.gz kernel-qcow2-linux-bc84982f977daa7116b402bb3c5760731305456f.tar.xz kernel-qcow2-linux-bc84982f977daa7116b402bb3c5760731305456f.zip |
mac80211: fix rate reporting inside cfg80211_calculate_bitrate_he()
[ Upstream commit 25d16d124a5e249e947c0487678b61dcff25cf8b ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
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 aad1c8e858e5..d57e2f679a3e 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c @@ -1219,7 +1219,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) |