wifi: cfg80211: fix comparison of BSS frequencies
authorJUN-KYU SHIN <jk.shin@newratek.com>
Fri, 11 Nov 2022 02:33:04 +0000 (11:33 +0900)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 1 Dec 2022 14:09:09 +0000 (15:09 +0100)
commitc1d3214d61d93eb4a3959c6b402230988d0f362d
tree9985811a31c8123cc539781b9f20976b1cb15ce1
parent09d838a457a89883a926b8b0104d575158fd4b92
wifi: cfg80211: fix comparison of BSS frequencies

If the "channel->freq_offset" comparison is omitted in cmp_bss(),
BSS with different kHz units cannot be distinguished in the S1G Band.
So "freq_offset" should also be included in the comparison.

Signed-off-by: JUN-KYU SHIN <jk.shin@newratek.com>
Link: https://lore.kernel.org/r/20221111023301.6395-1-jk.shin@newratek.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/scan.c