mirror of
https://github.com/torvalds/linux
synced 2024-09-22 03:55:39 +00:00
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>
This commit is contained in:
parent
818e9dfa2c
commit
25d16d124a
|
@ -1246,7 +1246,7 @@ static u32 cfg80211_calculate_bitrate_he(struct rate_info *rate)
|
||||||
if (rate->he_dcm)
|
if (rate->he_dcm)
|
||||||
result /= 2;
|
result /= 2;
|
||||||
|
|
||||||
return result;
|
return result / 10000;
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 cfg80211_calculate_bitrate(struct rate_info *rate)
|
u32 cfg80211_calculate_bitrate(struct rate_info *rate)
|
||||||
|
|
Loading…
Reference in a new issue