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 <quic_seevalam@quicinc.com>
Signed-off-by: Raj Kumar Bhagat <quic_rajkbhag@quicinc.com>
This commit is contained in:
Seevalamuthu Mariappan 2023-03-29 10:42:42 +05:30 committed by Jouni Malinen
parent 0059fa5bae
commit bb945b98fe

View 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