Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

wifi: mac80211: get probe response chan via ieee80211_get_channel_khz

Make use of ieee80211_get_channel_khz() rather then the MHz counterpart
to ensure probe responses received on an S1G channel pass the check.

Signed-off-by: Lachlan Hodges <lachlan.hodges@morsemicro.com>
Link: https://patch.msgid.link/20251021061051.235258-1-lachlan.hodges@morsemicro.com
[modify indentation]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Lachlan Hodges and committed by
Johannes Berg
ad55aa3a 8f24be70

+2 -2
+2 -2
net/mac80211/mlme.c
··· 6620 6620 * Response frame shall be set to the broadcast address [..]" 6621 6621 * So, on 6GHz band we should also accept broadcast responses. 6622 6622 */ 6623 - channel = ieee80211_get_channel(sdata->local->hw.wiphy, 6624 - rx_status->freq); 6623 + channel = ieee80211_get_channel_khz(sdata->local->hw.wiphy, 6624 + ieee80211_rx_status_to_khz(rx_status)); 6625 6625 if (!channel) 6626 6626 return; 6627 6627