summaryrefslogtreecommitdiff
path: root/net/mac80211
diff options
context:
space:
mode:
authorLachlan Hodges <lachlan.hodges@morsemicro.com>2025-10-21 17:10:51 +1100
committerJohannes Berg <johannes.berg@intel.com>2025-10-27 09:17:43 +0100
commitad55aa3ad8f843b2600db322d312f9f28d79568e (patch)
treeae78206a790b41453c7c27916093e2b81a68a61f /net/mac80211
parent8f24be708829854560e1db9f765c51305b046183 (diff)
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>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/mlme.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index e699702fe5b1..025210d50405 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -6620,8 +6620,8 @@ static void ieee80211_rx_mgmt_probe_resp(struct ieee80211_link_data *link,
* Response frame shall be set to the broadcast address [..]"
* So, on 6GHz band we should also accept broadcast responses.
*/
- channel = ieee80211_get_channel(sdata->local->hw.wiphy,
- rx_status->freq);
+ channel = ieee80211_get_channel_khz(sdata->local->hw.wiphy,
+ ieee80211_rx_status_to_khz(rx_status));
if (!channel)
return;