When I was running an older version of Openwrt on my GLI Beryl MT1300, I was able to enable DFS channel usage using the following commands in putty:
"uci set wireless.radio0.doth='1'
uci set wireless.radio0.country='US'
uci set wireless.radio0.channel='104'
uci commit wireless
wifi"
However, in newer versions of Openwrt this seems no longer to be working. Is there an updated version of these commands that should be used on Openwrt 23.xx? I need these enabled to use these channels as a repeater while outside the US. Thanks!
Just a point of reference -- the country code should be set based on wherever you are using the device at that time.
Why do you specifically need DFS channels for your application?
As far as DFS is concerned, there is a listening time (1m) before an interface can come up. And it will go down immediately if it detects a radar hit. So you're usually better served by avoiding DFS channels unless there is a specific reason you need it.
What exactly is or is not happening now? What are you expecting to happen and what are you observing?
I have tried changing the country code to the current country (for example "BR" Brazil), but it still ends up skipping those DFS channels here. An example error log: "Thu Dec 21 13:48:06 2023 daemon.err lua: (…07/ipkg-mips_24kc/gl-sdk4-repeater/usr/sbin/repeater:689) skip bss with dfs channel:…". I need the DFS channels because a lot of times at hotels and such, their AP uses those channel ranges and I need to connect to those APs as a repeater router with my device to run a Vpn through. When I try to run those commands now I don't get an error, but I am unable to see the potential changes by running "logread | grep DFS", still skips the DFS channels, and it seems to make the hostapd/radio unstable afterwards.
AP and STA simultaneous on the same radio will not work on a DFS channel. If the wifi system that you want to use for uplink is running on a DFS channel, you will need to run the AP on the other radio.
Also worth noting that you should simply use auto for your channel if the radio is being used in sta mode. It'll connect to the upstream normally. But as @mk24, you need to use the other radio for your downstream in the case of DFS channels (although non-DFS channels should allow AP + STA mode simultaneous operation, but the STA mode connection needs to be established before the AP mode can come up, so this is yet another reason to simply use the other radio for the AP).