Hey all,
I'm pretty new to OpenWRT, so I apologize in advance for any newbie mistakes. I'm a C/C++ dev so the tech side isn't too rough, but networking has always been a tough nut to crack for me.
I live in an extremely congested area (Los Angeles), so I've been trying to get the 5Ghz on my Archer C7 v2 running on radar detection channels. If it's applicable, it's running as an AP with an OPNSense device acting as the main router/firewall. The output of iw list
on my device is as follows (abridged to what I believe to be the relevant section):
Frequencies:
* 5180 MHz [36] (23.0 dBm)
* 5200 MHz [40] (23.0 dBm)
* 5220 MHz [44] (23.0 dBm)
* 5240 MHz [48] (23.0 dBm)
* 5260 MHz [52] (23.0 dBm) (radar detection)
* 5280 MHz [56] (23.0 dBm) (radar detection)
* 5300 MHz [60] (23.0 dBm) (radar detection)
* 5320 MHz [64] (23.0 dBm) (radar detection)
* 5500 MHz [100] (23.0 dBm) (radar detection)
* 5520 MHz [104] (23.0 dBm) (radar detection)
* 5540 MHz [108] (23.0 dBm) (radar detection)
* 5560 MHz [112] (23.0 dBm) (radar detection)
* 5580 MHz [116] (23.0 dBm) (radar detection)
* 5600 MHz [120] (23.0 dBm) (radar detection)
* 5620 MHz [124] (23.0 dBm) (radar detection)
* 5640 MHz [128] (23.0 dBm) (radar detection)
* 5660 MHz [132] (23.0 dBm) (radar detection)
* 5680 MHz [136] (23.0 dBm) (radar detection)
* 5700 MHz [140] (23.0 dBm) (radar detection)
* 5720 MHz [144] (23.0 dBm) (radar detection)
* 5745 MHz [149] (30.0 dBm)
* 5765 MHz [153] (30.0 dBm)
* 5785 MHz [157] (30.0 dBm)
* 5805 MHz [161] (30.0 dBm)
* 5825 MHz [165] (30.0 dBm)
* 5845 MHz [169] (27.0 dBm) (no IR)
* 5865 MHz [173] (27.0 dBm) (no IR)
valid interface combinations:
* #{ managed, P2P-client } <= 16, #{ P2P-GO } <= 3, #{ AP } <= 16, #{ IBSS } <= 1,
total <= 16, #channels <= 1, STA/AP BI must match, radar detect widths: { 20 MHz (no HT), 20 MHz, 40 MHz, 80 MHz, 80+80 MHz, 160 MHz }
However, running any of these channels results in "wireless not associated" on the 5Ghz device. logread
doesn't give too many clues:
Wed Aug 3 03:15:46 2022 kern.warn kernel: [250338.986669] ath10k_pci 0000:00:00.0: 10.1 wmi init: vdevs: 16 peers: 127 tid: 256
Wed Aug 3 03:15:46 2022 kern.info kernel: [250339.004186] ath10k_pci 0000:00:00.0: wmi print 'P 128 V 8 T 410'
Wed Aug 3 03:15:46 2022 kern.info kernel: [250339.010620] ath10k_pci 0000:00:00.0: wmi print 'msdu-desc: 1424 sw-crypt: 0 ct-sta: 0'
Wed Aug 3 03:15:46 2022 kern.info kernel: [250339.018884] ath10k_pci 0000:00:00.0: wmi print 'alloc rem: 24984 iram: 38672'
Wed Aug 3 03:15:46 2022 kern.warn kernel: [250339.087291] ath10k_pci 0000:00:00.0: pdev param 0 not supported by firmware
Wed Aug 3 03:15:46 2022 kern.info kernel: [250339.102376] ath10k_pci 0000:00:00.0: rts threshold -1
Wed Aug 3 03:15:46 2022 kern.info kernel: [250339.113674] br-lan: port 3(wlan0) entered blocking state
Wed Aug 3 03:15:46 2022 kern.info kernel: [250339.119241] br-lan: port 3(wlan0) entered disabled state
Wed Aug 3 03:15:46 2022 kern.info kernel: [250339.125008] device wlan0 entered promiscuous mode
Wed Aug 3 03:15:46 2022 daemon.notice hostapd: Frequency 5680 (primary) not allowed for AP mode, flags: 0xe007179 RADAR
Wed Aug 3 03:15:46 2022 daemon.err hostapd: Primary frequency not allowed
Wed Aug 3 03:15:46 2022 daemon.warn hostapd: wlan0: IEEE 802.11 Configured channel (136) or frequency (5680) not found from the channel list of the current mode (2) IEEE 802.11a
Wed Aug 3 03:15:46 2022 daemon.warn hostapd: wlan0: IEEE 802.11 Hardware does not support configured channel
The weird thing is, I don't see any mention of radar detected
in the logs. Furthermore, LUCI presents these channels as available to me, that is, channels 100-144 are available in the dropdown. My device driver is set to 'US', and I've tried switching between manually setting it to 'US' and back to 'default' to no avail. I'd appreciate any help on this! I feel like there might just be some option I'm neglecting to set, but I can't figure out what that might be.
Also, I'd be grateful if anyone could tell me if there's some kind of utility in OpenWRT that allows you to scan for radar without needing to manually check every channel. I've scoured these forums and reddit but haven't found anything aside from scripts that just automate that process.
Here's my /etc/config/wireless as well, if that helps:
config wifi-device 'radio0'
option type 'mac80211'
option path 'pci0000:00/0000:00:00.0'
option band '5g'
option cell_density '2'
option hwmode '11a'
option htmode 'VHT20'
option channel '136'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid '********'
option key '*******'
option encryption 'psk2'
option ieee80211r '1'
option mobility_domain '1bef' # 802.11r setup is preemptive; haven't set up the second AP yet
option ft_over_ds '1'
option ft_psk_generate_local '1'
Thank you!