Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: better Wi-Fi DFS state display #7388

Open
k-korn opened this issue Nov 13, 2024 · 7 comments
Open

Feature request: better Wi-Fi DFS state display #7388

k-korn opened this issue Nov 13, 2024 · 7 comments

Comments

@k-korn
Copy link

k-korn commented Nov 13, 2024

What would you like to see in luci?

Currently, if the user selects one of 5GHz DFS channels (52-144 in US, for example), DFS behavior is completely opaque to the user:

  • If the hardware supports DFS scans, the access point will come online only after the scan is done (~60 seconds).
  • If the hardware does NOT support DFS, the access point will never come online and the interface will be left inactive indefinitely - with no indication in the UI.
  • Yes, the issue can be dealt with by looking at hostapd logs - but one must be aware of this behavior to successfully fix the issue and move the AP to different channel.

My suggestion would be to improve visibility of DFS state in luci:

  • At minimum, indicate DFS channels in the list, for example "132 (5666 MHz, DFS)":
    image

  • If possible, provide current state of DFS in some notable UI place (Wi-Fi Overview page?).
    For the following log, the state should change "DFS Enabled -> DFS Scanning -> DFS OK"

Wed Nov 13 15:08:05 2024 daemon.notice hostapd: wlan5: interface state HT_SCAN->DFS
...
Wed Nov 13 15:09:11 2024 daemon.notice hostapd: wlan5: interface state DFS->ENABLED
Wed Nov 13 15:09:11 2024 daemon.notice hostapd: wlan5: AP-ENABLED

  • If DFS scan has been initiated but never finished (if the hardware does not support DFS), the interface should indicate something like "DFS FAILED" in red, suggesting channel change.

I am, unfortunately, too far from UI / Luci development to actually implement this - but at least, here is a suggestion.

@systemcrash
Copy link
Contributor

@Ansuel didn't your earlier fix which I merged for outdoor channels open the possibility to this? #5695

@dannil or @knarrff is this something interesting for you?

@Ansuel
Copy link
Member

Ansuel commented Nov 13, 2024

@systemcrash well yes the info are all there... about DFS state... it might require some additional support from the mac80211 side and rpcd but I think it's doable and it's actually a not so bad feature

@systemcrash
Copy link
Contributor

not so bad... haha. Yeah, it definitely provides value. DFS is often quite important regulatorily for 5GHz. I suppose a workaround in the meantime is to set your country to Antarctica or something :D

@dannil
Copy link
Contributor

dannil commented Nov 15, 2024

As long as we can make the iwinfo rpcd call to return the DFS channels in an uniform way independent of underlying driver (ath11k, mt76 etc.) this shouldn't be hard to implement, I like the idea as well.

@rmandrad
Copy link
Contributor

rmandrad commented Nov 21, 2024

I created a pull on iwinfo to display the DFS channels

@systemcrash
Copy link
Contributor

badass. Thanks @rmandrad

@systemcrash
Copy link
Contributor

So apparently RADAR_DETECTION based channels are now easily detectable thanks to ucode additions.

https://github.com/openwrt/openwrt/blob/874e0accae5121534259cc8b1bd3107bd104dd24/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/iwinfo.uc#L344

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants