without this 11s mesh could not be configured with bandwidth 80MHz in 6G band using iw. Also, this will be required to set frequency for 6GHz band in 80MHz. example: iw <interface> mesh join <meshname> freq 6195 80MHz Signed-off-by: Pradeep Kumar Chitrapu <pradeepc@xxxxxxxxxxxxxx> --- util.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/util.c b/util.c index 9ca32c5295ae..175470f11a27 100644 --- a/util.c +++ b/util.c @@ -1241,21 +1241,24 @@ void iw_hexdump(const char *prefix, const __u8 *buf, size_t size) int get_cf1(const struct chanmode *chanmode, unsigned long freq) { unsigned int cf1 = freq, j; - unsigned int vht80[] = { 5180, 5260, 5500, 5580, 5660, 5745 }; + unsigned int bw80[] = { 5180, 5260, 5500, 5580, 5660, 5745, + 5955, 6035, 6115, 6195, 6275, 6355, + 6435, 6515, 6595, 6675, 6755, 6835, + 6195, 6995 }; unsigned int vht160[] = { 5180, 5500 }; switch (chanmode->width) { case NL80211_CHAN_WIDTH_80: /* setup center_freq1 */ - for (j = 0; j < ARRAY_SIZE(vht80); j++) { - if (freq >= vht80[j] && freq < vht80[j] + 80) + for (j = 0; j < ARRAY_SIZE(bw80); j++) { + if (freq >= bw80[j] && freq < bw80[j] + 80) break; } - if (j == ARRAY_SIZE(vht80)) + if (j == ARRAY_SIZE(bw80)) break; - cf1 = vht80[j] + 30; + cf1 = bw80[j] + 30; break; case NL80211_CHAN_WIDTH_160: /* setup center_freq1 */ -- 1.9.1