From: Seevalamuthu Mariappan Date: Wed, 29 Mar 2023 05:12:42 +0000 (+0530) Subject: Add 40 and 80 MHz channels 165 and 173 for 5 GHz IBSS/mesh X-Git-Tag: hostap_2_11~1215 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bb945b98fefc64887dffb40773a19d77585cee42;p=thirdparty%2Fhostap.git Add 40 and 80 MHz channels 165 and 173 for 5 GHz IBSS/mesh Add the channels 165 and 173 in allowed channels for ht40_plus. Also add the allowed frequency 5825 (channel 165; channel center frequency index 171) for 80 MHz bandwidth. Signed-off-by: Seevalamuthu Mariappan Signed-off-by: Raj Kumar Bhagat --- diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index d0e4b7b52..93629e1f7 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -2763,7 +2763,8 @@ static void ibss_mesh_select_40mhz(struct wpa_supplicant *wpa_s, int i, res; unsigned int j; static const int ht40plus[] = { - 36, 44, 52, 60, 100, 108, 116, 124, 132, 149, 157, 184, 192 + 36, 44, 52, 60, 100, 108, 116, 124, 132, 149, 157, 165, 173, + 184, 192 }; int ht40 = -1; @@ -2864,9 +2865,9 @@ static bool ibss_mesh_select_80_160mhz(struct wpa_supplicant *wpa_s, struct hostapd_freq_params *freq, int ieee80211_mode, bool is_6ghz) { static const int bw80[] = { - 5180, 5260, 5500, 5580, 5660, 5745, 5955, - 6035, 6115, 6195, 6275, 6355, 6435, 6515, - 6595, 6675, 6755, 6835, 6915, 6995 + 5180, 5260, 5500, 5580, 5660, 5745, 5825, + 5955, 6035, 6115, 6195, 6275, 6355, 6435, + 6515, 6595, 6675, 6755, 6835, 6915, 6995 }; static const int bw160[] = { 5955, 6115, 6275, 6435, 6595, 6755, 6915