-
Notifications
You must be signed in to change notification settings - Fork 33
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
ffac-ssid-changer: rewrite in lua, use wifi reconf #138
base: master
Are you sure you want to change the base?
Conversation
@blocktrron mentioned on IRC that the upcoming openwrt 24.x will have a way to do a dynamic wifi reconf without teardown of a reconfigured interface. I tried various things like The most easiest way which works similar to the former behavior of reloading the hostapd with a changed config, can be done using:
The rewrite does basically exactly this. |
bd2b0d3
to
4e85ebf
Compare
Did some tests on a single band device with an additional private wifi, and on a dual band device with owe transition mode on 5 GHz band (see https://git.bingo-ev.de/freifunk/ffin-site) without private wifi. It works, all SSIDs get changed. I noted that when going offline, the OWE SSID disappears, and it comes back again after going online - that's nice!
|
Thanks! @citronalco Though this also adds a log entry for the minutely checks. |
This is a lua rewrite of the ffac-ssid-changer, which uses
uci set wireless.$network.ssid
andwifi reconf
instead of the hostapd reload approach.As we then can use
uci revert
and reconf, this is much lighter to handle and does only reload the radios for which a change is requested.OWE radios are turned off when offline.
The other parts should stay the same.
This is not yet thoroughly tested, but works fine in first functionality tests by copying the script onto a gluon node and going offline and online again.