Commit 25d16d12 authored by John Crispin's avatar John Crispin Committed by Johannes Berg
Browse files

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: default avatarShashidhar Lakkavalli <slakkavalli@datto.com>
Signed-off-by: default avatarJohn Crispin <john@phrozen.org>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 818e9dfa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)