Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc84982f authored by John Crispin's avatar John Crispin Committed by Greg Kroah-Hartman
Browse files

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: 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>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 3c24a931
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)