]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_supplicant: Add channel 140 to ht40plus allowed list for mesh/IBSS
authorRamya Gnanasekar <quic_rgnanase@quicinc.com>
Fri, 3 Nov 2023 11:16:17 +0000 (16:46 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 3 Nov 2023 14:04:58 +0000 (16:04 +0200)
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 <quic_rgnanase@quicinc.com>
wpa_supplicant/wpa_supplicant.c

index 19f1241748eefbb37827b4d89c2b7e748a275890..4c305830c77ad35cb633c9e9fff159686cd79a85 100644 (file)
@@ -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;