-
Notifications
You must be signed in to change notification settings - Fork 324
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
gluon-core: lua: wireless: add support for PHYs named in board.json #3435
Conversation
On mediatek-mt7622, board.json contains a PHY -> path mapping (which confusingly also uses the `phy` UCI option). Look up the mapping and pass the path query into iwinfo, like OpenWrt's mac80211.sh does.
I have pushed another small update to avoid reading |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
test of f85b20d (sysupgrade without keeping the config) I've been debugging for a while:
Those are the old phy-names pre renaming. errors in config mode:
Privates WLAN page:
gluon-reconfigure
|
What could work instead: calling this in a shell via lua (os.execute but with variables for the phy names?) after running that for all wifi-devices once, this iwinfo command works just fine on this plattform: But it only works if paths have been renamed like this: spoiler
But I'm not sure whether we even need to rename the phys. |
This comment was marked as outdated.
This comment was marked as outdated.
Ah, the issue is indeed that the Lua library behaves differently from the iwinfo CLI. Okay, new idea: I'll fix this in OpenWrt. The whole issue is that the renaming happens when netifd starts the radio, which is much too late and can lead to race conditions in addition to our issues. The renaming should probably be done by a hotplug.d hook instead. |
Are you sure hotplug.d isn't too early? (=> is board.json even fully populated then?) edit: |
Ah, I can see that being an issue. So it would have to use the same trick already used for |
took me a while to find the commit again, that you are referring to edit: |
Superseded by openwrt/openwrt#17821 |
On mediatek-mt7622, board.json contains a PHY -> path mapping (which confusingly also uses the
phy
UCI option). Look up the mapping and pass the path query into iwinfo, like OpenWrt's mac80211.sh does.Supersedes #3430
Untested on mt7622. Tested on ipq40xx to check that it doesn't break other platforms.