mac80211: fix rate reporting inside cfg80211_calculate_bitrate_he()
PATCH v2 1/1 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 <[email protected]>
Signed-off-by John Crispin <[email protected]>
--- net/wireless/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/wireless/util.c +1 -1
@@ -1237,7 +1237,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)
Signature · 1 line
2.20.1