Hi there. I live near a air force base, after installing OpenWRT, I have been experiencing disconnections in the 5GHz frequency band every day for the past two days. The log is as follows.
Wed Feb 21 09:49:33 2024 daemon.notice hostapd: phy1-ap0: DFS-RADAR-DETECTED freq=5580 ht_enabled=0 chan_offset=0 chan_width=5 cf1=5570 cf2=0
Wed Feb 21 09:49:33 2024 daemon.notice hostapd: phy1-ap0: AP-DISABLED
Wed Feb 21 09:49:33 2024 daemon.notice hostapd: phy1-ap0: AP-STA-DISCONNECTED ma:ca:dd:re:ss:00
Wed Feb 21 09:49:33 2024 daemon.notice hostapd: nl80211: deinit ifname=phy1-ap0 disabled_11b_rates=0
Wed Feb 21 09:49:33 2024 daemon.notice netifd: Network device 'phy1-ap0' link is down
Wed Feb 21 09:49:33 2024 kern.info kernel: [62705.033256] br-lan: port 7(phy1-ap0) entered disabled state
Wed Feb 21 09:49:34 2024 daemon.notice hostapd: phy1-ap0: interface state ENABLED->DISABLED
Wed Feb 21 09:49:34 2024 kern.info kernel: [62706.326341] br-lan: port 7(phy1-ap0) entered disabled state
Wed Feb 21 09:49:34 2024 kern.info kernel: [62706.333303] device phy1-ap0 left promiscuous mode
Wed Feb 21 09:49:34 2024 kern.info kernel: [62706.338109] br-lan: port 7(phy1-ap0) entered disabled state
Wed Feb 21 09:49:35 2024 kern.info kernel: [62707.174445] br-lan: port 7(phy1-ap0) entered blocking state
Wed Feb 21 09:49:35 2024 kern.info kernel: [62707.180023] br-lan: port 7(phy1-ap0) entered disabled state
Wed Feb 21 09:49:35 2024 daemon.notice hostapd: phy1-ap0: interface state DISABLED->COUNTRY_UPDATE
Wed Feb 21 09:49:35 2024 daemon.notice hostapd: ACS: Automatic channel selection started, this may take a bit
Wed Feb 21 09:49:35 2024 kern.info kernel: [62707.185770] device phy1-ap0 entered promiscuous mode
Wed Feb 21 09:49:35 2024 daemon.notice hostapd: phy1-ap0: interface state COUNTRY_UPDATE->ACS
Wed Feb 21 09:49:35 2024 daemon.notice hostapd: phy1-ap0: ACS-STARTED
Wed Feb 21 09:49:52 2024 daemon.notice hostapd: phy1-ap0: ACS-COMPLETED freq=5620 channel=124
Wed Feb 21 09:49:52 2024 daemon.notice hostapd: phy1-ap0: interface state ACS->HT_SCAN
Wed Feb 21 09:49:52 2024 daemon.notice hostapd: phy1-ap0: interface state HT_SCAN->DFS
Wed Feb 21 09:49:52 2024 daemon.notice hostapd: phy1-ap0: DFS-CAC-START freq=5180 chan=36 sec_chan=1, width=2, seg0=50, seg1=0, cac_time=60s
Wed Feb 21 09:50:57 2024 daemon.notice hostapd: phy1-ap0: DFS-CAC-COMPLETED success=1 freq=5180 ht_enabled=0 chan_offset=0 chan_width=5 cf1=5250 cf2=0
Wed Feb 21 09:50:57 2024 daemon.warn hostapd: Can't set DFS state for freq 5180 MHz
Wed Feb 21 09:50:57 2024 daemon.warn hostapd: Can't set DFS state for freq 5200 MHz
Wed Feb 21 09:50:57 2024 daemon.warn hostapd: Can't set DFS state for freq 5220 MHz
Wed Feb 21 09:50:57 2024 daemon.warn hostapd: Can't set DFS state for freq 5240 MHz
Wed Feb 21 09:50:58 2024 kern.info kernel: [62789.392083] IPv6: ADDRCONF(NETDEV_CHANGE): phy1-ap0: link becomes ready
Wed Feb 21 09:50:58 2024 kern.info kernel: [62789.398814] br-lan: port 7(phy1-ap0) entered blocking state
Wed Feb 21 09:50:58 2024 kern.info kernel: [62789.404384] br-lan: port 7(phy1-ap0) entered forwarding state
Wed Feb 21 09:50:58 2024 daemon.notice netifd: Network device 'phy1-ap0' link is up
Wed Feb 21 09:50:58 2024 daemon.notice hostapd: phy1-ap0: interface state DFS->ENABLED
I have already set the country code to SG
# iw reg get
global
country SG: DFS-FCC
(2400 - 2483 @ 40), (N/A, 23), (N/A)
(5150 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
(5250 - 5350 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW
(5470 - 5725 @ 160), (N/A, 27), (0 ms), DFS
(5725 - 5850 @ 80), (N/A, 30), (N/A)
(57000 - 66000 @ 2160), (N/A, 40), (N/A)
From the above output, I can confirm that DFS frequency is in the range defined. But when the channel is set to auto, the router still cannot avoid the DFS frequency band. What should I do? Thanks in advance.