hostapd: fix more AP+STA issues
authorFelix Fietkau <nbd@nbd.name>
Thu, 14 Sep 2023 17:08:34 +0000 (19:08 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 14 Sep 2023 17:13:36 +0000 (19:13 +0200)
commit4acbe4e336fabbe6011485b3f37f4941f75b5072
tree03ca014e5fa1fe371b6da243bb96c38f0000b386
parenta63e118f7765735ec676f49c528be296eb55f7ad
hostapd: fix more AP+STA issues

When STA is disconnected, ensure that the interface is in a cleanly stopped
state:
 - if in regular enable/disable state, stop beacons if necessary
 - in any other state, disable the interface

When the STA is up, ignore repeated start commands for the same channel, in
order to avoid unnecessary AP restarts

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/services/hostapd/files/hostapd.uc
package/network/services/hostapd/src/src/ap/ucode.c