From: Ramya Gnanasekar Date: Fri, 3 Nov 2023 11:16:17 +0000 (+0530) Subject: wpa_supplicant: Add channel 140 to ht40plus allowed list for mesh/IBSS X-Git-Tag: hostap_2_11~875 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=544801d74cc232263add1491d801549c98b590a3;p=thirdparty%2Fhostap.git wpa_supplicant: Add channel 140 to ht40plus allowed list for mesh/IBSS When channel 140 is configured in mesh, interface fails to come up due to channel bond (136,140). Since Channel 136 is not HT40+ capable, validation for HT channel bonding fails when it checks whether first channel in the bond (channel 136) is HT40+ capable. In mesh, during channel setup, secondary channel offset for the configured channel will be selected as +1 if primary channel is capable of HT40+. In current code, channel 140 is not allowed as HT40+ and hence secondary channel offset is selected as -1, which makes 136 as secondary channel. But channel 136 is not HT40+ supported and fails in channel bonding validation. Add 140 to HT40+ allowed list as HT40+ is supported for the channel. Signed-off-by: Ramya Gnanasekar --- diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index 19f124174..4c305830c 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -2796,8 +2796,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, 165, 173, - 184, 192 + 36, 44, 52, 60, 100, 108, 116, 124, 132, 140, + 149, 157, 165, 173, 184, 192 }; int ht40 = -1;