MT7612EN problems with DFS

Hauke Mehrtens hauke at hauke-m.de
Fri Feb 12 16:38:53 EST 2021


Hi Felix,

DFS on the Xiaomi Mi WiFi R3G (MT7612EN) stops working after about 1 day 
for me with current OpenWrt master (r15718).

I think it worked well with OpenWrt from beginning of December with 
mac80211 5.10.

I see this in the log:
----------------
Wed Feb 10 16:54:29 2021 daemon.notice hostapd: wlan1: 
DFS-RADAR-DETECTED freq=5580 ht_enabled=0 chan_offset=0 chan_width=3 
cf1=5610 cf2=0
Wed Feb 10 16:54:29 2021 daemon.notice hostapd: dfs_downgrade_bandwidth: 
no DFS channels left, waiting for NOP to finish
Wed Feb 10 16:54:29 2021 daemon.notice hostapd: wlan1: AP-DISABLED
Wed Feb 10 16:54:29 2021 daemon.notice hostapd: wlan1: 
AP-STA-DISCONNECTED b2:03:8c:14:b2:26
Wed Feb 10 16:54:29 2021 daemon.notice hostapd: wlan1: 
AP-STA-DISCONNECTED 04:ed:33:d2:3f:e8
Wed Feb 10 16:54:29 2021 daemon.err hostapd: 20/40 MHz: center segment 0 
(=122) and center freq 1 (=5590) not in sync
Wed Feb 10 16:54:29 2021 daemon.notice hostapd: nl80211: deinit 
ifname=wlan1 disabled_11b_rates=0
Wed Feb 10 16:54:29 2021 kern.info kernel: [145806.582851] device wlan1 
left promiscuous mode
Wed Feb 10 16:54:29 2021 kern.info kernel: [145806.587707] br-lan: port 
4(wlan1) entered disabled state
Wed Feb 10 16:54:29 2021 daemon.notice netifd: Network device 'wlan1' 
link is down
Wed Feb 10 16:54:29 2021 daemon.notice hostapd: wlan1: interface state 
ENABLED->DISABLED
Wed Feb 10 16:54:29 2021 daemon.debug dnsmasq[4383]: stopped listening 
on wlan1(#15): fe80::4231:3cff:fe02:8fba%wlan1 port 53
Wed Feb 10 16:54:29 2021 kern.info kernel: [145806.659862] br-lan: port 
4(wlan1) entered blocking state
Wed Feb 10 16:54:29 2021 kern.info kernel: [145806.665285] br-lan: port 
4(wlan1) entered disabled state
Wed Feb 10 16:54:29 2021 kern.info kernel: [145806.671295] device wlan1 
entered promiscuous mode
Wed Feb 10 16:54:29 2021 daemon.notice hostapd: wlan1: interface state 
DISABLED->COUNTRY_UPDATE
Wed Feb 10 16:54:29 2021 daemon.notice hostapd: wlan1: interface state 
COUNTRY_UPDATE->HT_SCAN
Wed Feb 10 16:54:30 2021 daemon.err hostapd: could not get valid channel
Wed Feb 10 16:54:30 2021 daemon.notice hostapd: wlan1: interface state 
HT_SCAN->DFS
........
Wed Feb 10 17:24:48 2021 daemon.notice hostapd: wlan1: DFS-NOP-FINISHED 
freq=5580 ht_enabled=0 chan_offset=0 chan_width=0 cf1=5580 cf2=0
Wed Feb 10 17:24:48 2021 daemon.err hostapd: could not get valid channel
Wed Feb 10 17:24:48 2021 daemon.notice hostapd: wlan1: interface state 
DFS->DFS
Wed Feb 10 17:24:48 2021 daemon.notice hostapd: wlan1: DFS-NOP-FINISHED 
freq=5600 ht_enabled=0 chan_offset=0 chan_width=0 cf1=5600 cf2=0
Wed Feb 10 17:24:48 2021 daemon.notice hostapd: wlan1: interface state 
DFS->DFS
Wed Feb 10 17:24:48 2021 daemon.notice hostapd: wlan1: DFS-CAC-START 
freq=5580 chan=116 sec_chan=1, width=0, seg0=122, seg1=0, cac_time=60s
Wed Feb 10 17:24:48 2021 daemon.err hostapd: 20/40 MHz: center segment 0 
(=122) and center freq 1 (=5590) not in sync
Wed Feb 10 17:24:48 2021 daemon.err hostapd: Can't set freq params
Wed Feb 10 17:24:48 2021 daemon.err hostapd: DFS start_dfs_cac() failed, -1
Wed Feb 10 17:24:48 2021 daemon.notice hostapd: wlan1: DFS-NOP-FINISHED 
freq=5620 ht_enabled=0 chan_offset=0 chan_width=0 cf1=5620 cf2=0
Wed Feb 10 17:24:48 2021 daemon.notice hostapd: wlan1: interface state 
DFS->DFS
Wed Feb 10 17:24:48 2021 daemon.notice hostapd: wlan1: DFS-CAC-START 
freq=5580 chan=116 sec_chan=1, width=0, seg0=122, seg1=0, cac_time=60s
Wed Feb 10 17:24:48 2021 daemon.err hostapd: 20/40 MHz: center segment 0 
(=122) and center freq 1 (=5590) not in sync
Wed Feb 10 17:24:48 2021 daemon.err hostapd: Can't set freq params
Wed Feb 10 17:24:48 2021 daemon.err hostapd: DFS start_dfs_cac() failed, -1
Wed Feb 10 17:24:48 2021 daemon.notice hostapd: wlan1: DFS-NOP-FINISHED 
freq=5640 ht_enabled=0 chan_offset=0 chan_width=0 cf1=5640 cf2=0
Wed Feb 10 17:24:48 2021 daemon.notice hostapd: wlan1: interface state 
DFS->DFS
Wed Feb 10 17:24:48 2021 daemon.notice hostapd: wlan1: DFS-CAC-START 
freq=5580 chan=116 sec_chan=1, width=0, seg0=122, seg1=0, cac_time=60s
Wed Feb 10 17:24:48 2021 daemon.err hostapd: 20/40 MHz: center segment 0 
(=122) and center freq 1 (=5590) not in sync
Wed Feb 10 17:24:48 2021 daemon.err hostapd: Can't set freq params
Wed Feb 10 17:24:48 2021 daemon.err hostapd: DFS start_dfs_cac() failed, -1
--------------
You can find more logs here:
https://www.hauke-m.de/files/logs/2021-02-12-wlan1.txt

Hauke

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20210212/60d667f3/attachment.sig>


More information about the openwrt-devel mailing list