I've been asked to troubleshoot an issue with an 802.11ac wireless network that has a 80MHz channel width. When setting up a wireless device in monitor mode, I'm having trouble specifying the 80Mhz channel width to iw.
I've verified that my regulator domain allows 80 MHz channels
iw reg get
country US: DFS-FCC
(2402 - 2472 @ 40), (N/A, 30), (N/A)
(5170 - 5250 @ 80), (N/A, 17), (N/A)
(5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS
(5490 - 5730 @ 160), (N/A, 23), (0 ms), DFS
(5735 - 5835 @ 80), (N/A, 30), (N/A)
(57240 - 63720 @ 2160), (N/A, 40), (N/A)
But when I issue the following iw commands to use Channel 40, I just get error messages.
# iw dev <devname> set freq <control freq> [20|40|80|80+80|160] [<center freq 1>] [<center freq 2>]
$ sudo iw wlo1 set freq 5200 80
command failed: Invalid argument (-22)
$ sudo iw wlo1 set freq 5210 80
command failed: Invalid argument (-22)
$ sudo iw wlo1 set freq 5200 80 5210
command failed: Invalid argument (-22)
$ sudo iw wlo1 set freq 5210 80 5210
command failed: Invalid argument (-22)
$ sudo iw wlo1 set freq 5210 80 5200
command failed: Invalid argument (-22)
$ sudo iw wlo1 set channel 42
command failed: Invalid argument (-22)
I'm also a bit confused on the distinction between control frequency and center frequency and their relationship to the channel number. Wikipedia List of WLAN channels says that Channel 40 with a 20 MHz channel width spans the frequencies 5190-5210 MHz. It seems to imply that if I'm using an 80 MHz channel width that I'm actually using channel 42, but that also doesn't work. This illustration does a good job illustrating the channels. If I interpret "center frequency" to mean "the frequency half-way between the highest and lowest frequency" then that would be 5210 MHz, but then what is the control frequency? Is it 5200 MHz for channel 40? 5210 MHz for channel 42?
The only iw command that works is set channel 40, which results in a 20 MHz channel width.