]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
mesh: Assign channel in frequency params in all bands
authorPradeep Kumar Chitrapu <pradeepc@codeaurora.org>
Wed, 16 Sep 2020 01:01:48 +0000 (18:01 -0700)
committerJouni Malinen <j@w1.fi>
Tue, 9 Feb 2021 22:25:36 +0000 (00:25 +0200)
Previously, the channel number was set in hostapd_freq_params only with
the presence of HT capabilities. Set the channel number before the check
for HT mode to accommodate the 6 GHz band cases.

Signed-off-by: Pradeep Kumar Chitrapu <pradeepc@codeaurora.org>
wpa_supplicant/wpa_supplicant.c

index db99d959702e8ee293a22fb0eddf50c11d9d5252..a65ca7b1e48c8ce2ca38e06cb55c3c539f7556cf 100644 (file)
@@ -2430,6 +2430,8 @@ void ibss_mesh_setup_freq(struct wpa_supplicant *wpa_s,
        if (!mode)
                return;
 
+       freq->channel = channel;
+
        is_24ghz = hw_mode == HOSTAPD_MODE_IEEE80211G ||
                hw_mode == HOSTAPD_MODE_IEEE80211B;