From: Pradeep Kumar Chitrapu Date: Wed, 16 Sep 2020 01:01:48 +0000 (-0700) Subject: mesh: Assign channel in frequency params in all bands X-Git-Tag: hostap_2_10~589 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35756c02ea76f9565a501a5493a3a4ab31f45c48;p=thirdparty%2Fhostap.git 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 --- diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index db99d9597..a65ca7b1e 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -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;