]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add 40 and 80 MHz channels 165 and 173 for 5 GHz IBSS/mesh
authorSeevalamuthu Mariappan <quic_seevalam@quicinc.com>
Wed, 29 Mar 2023 05:12:42 +0000 (10:42 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 29 Mar 2023 15:37:31 +0000 (18:37 +0300)
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 <quic_seevalam@quicinc.com>
Signed-off-by: Raj Kumar Bhagat <quic_rajkbhag@quicinc.com>
wpa_supplicant/wpa_supplicant.c

index d0e4b7b5205c474aa9d7a37d9de0030f37d381e0..93629e1f76ff8e65e034ccfe8202127a8a7bf2ef 100644 (file)
@@ -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