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

Commit 81be54cb authored by Johannes Berg's avatar Johannes Berg Committed by Gerrit - the friendly Code Review server
Browse files

cfg80211: fix 6 GHz frequencies to kHz

The updates to change to kHz frequencies and the 6 GHz
additions evidently overlapped (or rather, I didn't see
it when applying the latter), so the 6 GHz is broken.
Fix this.

Fixes: 934f4c7dd3a5 ("cfg80211: express channels with a KHz component")
Link: https://lore.kernel.org/r/20200529140425.1bf824f6911b.I4a1174916b8f5965af4366999eb9ffc7a0347470@changeid


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Git-commit: 5e9cf0f0a3e98992184442de24253fe1b9c40f2e
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git


CRs-Fixed: 2743684
Change-Id: I0309bdd35bdfcf8550de3ee8cac7c04d5eac4bdb
Signed-off-by: default avatarVinita S. Maloo <vmaloo@codeaurora.org>
parent 6d3d8a2c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -90,7 +90,7 @@ u32 ieee80211_channel_to_freq_khz(int chan, enum nl80211_band band)
	case NL80211_BAND_6GHZ:
		/* see 802.11ax D4.1 27.3.22.2 */
		if (chan <= 253)
			return 5940 + chan * 5;
			return MHZ_TO_KHZ(5940 + chan * 5);
		break;
	case NL80211_BAND_60GHZ:
		if (chan < 7)