Skip to content

5 GHZ band has rea lissues with DFS channels #13231

Open
@RafcioRS

Description

@RafcioRS

Describe the bug

I use DFS channel as non-DFS ones are extremely crowded where I live, and OpenWRT has serious issues with DFS channels. One thing, it's not able to scan the 5 GHz band, when the radio is active. When the radio goes down (and that's the second bug), the scan works.
There has to be a better way of handling DFS channels. I've been using Tomato firmware for many years and has never had the wireless (that was always on DFS channel) go down. OpenWRT firmware has an annoying issue that the 5 GHz radio goes down and doesn't recover on its own. The radio has to manually restarted, or the system rebooted. This happens several times a week.

Here are the log entries related to the issue.
Sat Aug 5 13:53:37 2023 daemon.notice hostapd: wlan0: DFS-RADAR-DETECTED freq=5500 ht_enabled=0 chan_offset=0 chan_width=3 cf1=5530 cf2=0
Sat Aug 5 13:53:37 2023 daemon.notice hostapd: dfs_downgrade_bandwidth: no DFS channels left, waiting for NOP to finish
Sat Aug 5 13:53:37 2023 daemon.notice hostapd: wlan0: AP-DISABLED
Sat Aug 5 13:53:37 2023 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED 2c:8d:b1:59:b4:88
Sat Aug 5 13:53:37 2023 daemon.err hostapd: 20/40 MHz: center segment 0 (=106) and center freq 1 (=5510) not in sync
Sat Aug 5 13:53:37 2023 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Sat Aug 5 13:53:37 2023 daemon.notice netifd: Network device 'wlan0' link is down
Sat Aug 5 13:53:37 2023 kern.info kernel: [262715.982457] device wlan0 left promiscuous mode
Sat Aug 5 13:53:37 2023 kern.info kernel: [262715.987388] br-lan: port 2(wlan0) entered disabled state
Sat Aug 5 13:53:37 2023 kern.info kernel: [262715.998425] ath10k_pci 0000:00:00.0: mac flush null vif, drop 0 queues 0xffff
Sat Aug 5 13:53:37 2023 daemon.notice hostapd: wlan0: interface state ENABLED->DISABLED
Sat Aug 5 13:53:38 2023 kern.warn kernel: [262717.119159] ath10k_pci 0000:00:00.0: 10.1 wmi init: vdevs: 16 peers: 127 tid: 256
Sat Aug 5 13:53:38 2023 kern.info kernel: [262717.136885] ath10k_pci 0000:00:00.0: wmi print 'P 128 V 8 T 410'
Sat Aug 5 13:53:38 2023 kern.info kernel: [262717.143928] ath10k_pci 0000:00:00.0: wmi print 'msdu-desc: 1424 sw-crypt: 0 ct-sta: 0'
Sat Aug 5 13:53:38 2023 kern.info kernel: [262717.152356] ath10k_pci 0000:00:00.0: wmi print 'alloc rem: 24984 iram: 38672'
Sat Aug 5 13:53:38 2023 kern.warn kernel: [262717.221367] ath10k_pci 0000:00:00.0: pdev param 0 not supported by firmware
Sat Aug 5 13:53:38 2023 kern.info kernel: [262717.236701] ath10k_pci 0000:00:00.0: rts threshold -1
Sat Aug 5 13:53:38 2023 kern.info kernel: [262717.252509] br-lan: port 2(wlan0) entered blocking state
Sat Aug 5 13:53:38 2023 kern.info kernel: [262717.258158] br-lan: port 2(wlan0) entered disabled state
Sat Aug 5 13:53:38 2023 kern.info kernel: [262717.264115] device wlan0 entered promiscuous mode
Sat Aug 5 13:53:38 2023 daemon.notice hostapd: wlan0: interface state DISABLED->COUNTRY_UPDATE
Sat Aug 5 13:53:38 2023 kern.debug kernel: [262717.271939] ath: EEPROM regdomain: 0x82be
Sat Aug 5 13:53:38 2023 kern.debug kernel: [262717.276286] ath: EEPROM indicates we should expect a country code
Sat Aug 5 13:53:38 2023 kern.debug kernel: [262717.282812] ath: doing EEPROM country->regdmn map search
Sat Aug 5 13:53:38 2023 kern.debug kernel: [262717.288417] ath: country maps to regdmn code: 0x3b
Sat Aug 5 13:53:38 2023 kern.debug kernel: [262717.293448] ath: Country alpha2 being used: SG
Sat Aug 5 13:53:38 2023 kern.debug kernel: [262717.298207] ath: Regpair used: 0x3b
Sat Aug 5 13:53:38 2023 kern.debug kernel: [262717.301923] ath: regdomain 0x82be dynamically updated by user
Sat Aug 5 13:53:38 2023 kern.debug kernel: [262717.308097] ath: EEPROM regdomain: 0x82be
Sat Aug 5 13:53:38 2023 kern.debug kernel: [262717.312326] ath: EEPROM indicates we should expect a country code
Sat Aug 5 13:53:38 2023 kern.debug kernel: [262717.318822] ath: doing EEPROM country->regdmn map search
Sat Aug 5 13:53:38 2023 kern.debug kernel: [262717.324471] ath: country maps to regdmn code: 0x3b
Sat Aug 5 13:53:38 2023 kern.debug kernel: [262717.329648] ath: Country alpha2 being used: SG
Sat Aug 5 13:53:38 2023 kern.debug kernel: [262717.334411] ath: Regpair used: 0x3b
Sat Aug 5 13:53:38 2023 kern.debug kernel: [262717.338139] ath: regdomain 0x82be dynamically updated by user
Sat Aug 5 13:53:38 2023 daemon.notice hostapd: wlan0: interface state COUNTRY_UPDATE->HT_SCAN
Sat Aug 5 13:53:41 2023 daemon.notice hostapd: wlan0: interface state HT_SCAN->DFS
Sat Aug 5 13:53:41 2023 daemon.notice hostapd: wlan0: DFS-CAC-START freq=5500 chan=100 sec_chan=1, width=0, seg0=106, seg1=0, cac_time=60s
Sat Aug 5 13:53:41 2023 daemon.err hostapd: 20/40 MHz: center segment 0 (=106) and center freq 1 (=5510) not in sync
Sat Aug 5 13:53:41 2023 daemon.err hostapd: Can't set freq params
Sat Aug 5 13:53:41 2023 daemon.err hostapd: DFS start_dfs_cac() failed, -1
Sat Aug 5 13:53:41 2023 daemon.err hostapd: Interface initialization failed
Sat Aug 5 13:53:41 2023 daemon.notice hostapd: wlan0: interface state DFS->DISABLED
Sat Aug 5 13:53:41 2023 daemon.notice hostapd: wlan0: AP-DISABLED

Now that the 5 GHZ radio is down (the icon is solid) the wireless scan of that band is working, otherwise nothing is shown. That's really strange.
There probably needs to be a way to enter a fallback (non-DFS?) channel, when the radio has to vacate the specified DFS one, and a periodic scan to figure out when the radio can return to the "primary" channel. That would be my idea about how that issue should be handled.

OpenWrt version

r20028-43d71ad93e

OpenWrt target/subtarget

ath79/generic

Device

TP-Link Archer A7 v5

Image kind

Official downloaded image

Steps to reproduce

No response

Actual behaviour

No response

Expected behaviour

No response

Additional info

No response

Diffconfig

No response

Terms

  • I am reporting an issue for OpenWrt, not an unsupported fork.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugissue report with a confirmed bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions