]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: mac80211: get probe response chan via ieee80211_get_channel_khz
authorLachlan Hodges <lachlan.hodges@morsemicro.com>
Tue, 21 Oct 2025 06:10:51 +0000 (17:10 +1100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 27 Oct 2025 08:17:43 +0000 (09:17 +0100)
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>
net/mac80211/mlme.c

index e699702fe5b1303a06faf29a849f967e1e3077a3..025210d50405185fbdb989268066184f0b662b55 100644 (file)
@@ -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;