Hello.
I have a router with two connections on one radio. One is sta mode, and the other is ap mode. I would like to find a way to disable any and all sta mode connections via a UCI command, which I will trigger by checking to see if that sta mode connection is connected, if possible.
I need to do this as the ap mode will drop if the sta mode loses signal (It's a sort of longstanding bug).
In pseudocode, since I can't seem to find the syntax for exactly what I need:
do while true
do for all sta in interfaces:
if not sta_connected
then sta disable=1
endif
end
sleep 120
end
Preferably, I would disable the sta mode interfaces so as not to save it in flash (also to make it last longer), so that when I go somewhere else and turn the router on it brings up the sta interfaces and, after they have had a chance to connect, disables the disconnected one(s).
Perhaps I could also add a script activated by a button to manually bring up all the sta mode connections for if the router is still on.
button --> do for all sta in interfaces
sta_disable=0
end
I feel as if this could be useful to a lot of people, as this keeps coming up and seems to be a wontfix, but I have not found a solution that does not involve multiple copies of config files.
