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

Wifi device naming conventions causing issues for some routers #1078

Open
ch-iara opened this issue Jan 7, 2025 · 0 comments
Open

Wifi device naming conventions causing issues for some routers #1078

ch-iara opened this issue Jan 7, 2025 · 0 comments

Comments

@ch-iara
Copy link
Contributor

ch-iara commented Jan 7, 2025

This issue was originally noticed when the linksys_whw03 and linksys_whw03v2 were added to the firmware build, but their config files were missing the ifname assignment that other images get.
The wifi data sent to ops comes from two places: iw and uci (which configures by /etc/config/wireless). Previously the interface names parsed from both these commands were standard, but with these new routers that is no longer the case- and that disconnect was the cause of this issue.
What we need now is a way to either assign the same name to each interface on both programs or find a way for rita to conflate the two, as right now iw parses interfaces with names like 'phy0-ap0' but uci parses that same interface as 'radio0'.

Some example outputs:
LR-14, Beta21RC17, linksys_whw03 which has some (apparently default- interfaces are unlisted) info for wifi devices, but does populate uci settings with named radios as radio0,1,2:
image
image
image
image
image
(note: this router does not have the ifname field set in etc/config/wireless. so how is it getting the radio names to ops?)

LR-36, Beta21RC20, linksys_whw03v2 this one has the iw interfaces with their info populated but does not show any data gleaned from uci. this is expected after the original fix:
image
image
image
image
image

and, a test case: LR-18, Beta21RC20, linksys_whw03v2 was in the same state as LR-36. After manually adding an ifname to each wifi-iface in /etc/config/wireless and running wifi reload, both the uci and iw data is shown under the new names (wlanX):
image
image
image

The idea here is to fix this without needing a sysupgrade, which means if we go the route of adding this ifname to each router's config it must be done by rita auto detecting its absence. More testing tbd as I mess with other config settings and their outputs.

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

1 participant