ffac-ssid-changer: rewrite in lua, use wifi reconf#138
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. |
d3f7069 to
b25e816
Compare
This is a lua rewrite of the ffac-ssid-changer, which uses
uci set wireless.$network.ssidandwifi reconfinstead of the hostapd reload approach.As we then can use
uci revertand 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.