mesh: Assign channel in frequency params in all bands

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>
This commit is contained in:
Pradeep Kumar Chitrapu 2020-09-15 18:01:48 -07:00 committed by Jouni Malinen
parent b1c3e4d071
commit 35756c02ea

View file

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