aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2023-08-23 18:19:14 +0200
committerFelix Fietkau <nbd@nbd.name>2023-08-23 19:05:47 +0200
commitf3eb998e7e646e91cc42b019dce4e347a505f3b6 (patch)
tree2c407c5a66e5aa5c2c05ad01a89ac3f0dde1aeb2
parentaa5f2cb63c3869595486a1758cf0bd04c88436f1 (diff)
downloadupstream-f3eb998e7e646e91cc42b019dce4e347a505f3b6.tar.gz
upstream-f3eb998e7e646e91cc42b019dce4e347a505f3b6.tar.bz2
upstream-f3eb998e7e646e91cc42b019dce4e347a505f3b6.zip
hostapd: in AP/STA, shut down AP interfaces when STA enters scanning state
When the STA is brought up, it is set to DISABLED before adding the bss to ucode, so the first trigger to disable the AP is missed. Reported-by: Michael-cy Lee (李峻宇) <Michael-cy.Lee@mediatek.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--package/network/services/hostapd/files/wpa_supplicant.uc1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/network/services/hostapd/files/wpa_supplicant.uc b/package/network/services/hostapd/files/wpa_supplicant.uc
index e3a3afcff21..50da7f14ffe 100644
--- a/package/network/services/hostapd/files/wpa_supplicant.uc
+++ b/package/network/services/hostapd/files/wpa_supplicant.uc
@@ -188,6 +188,7 @@ function iface_hostapd_notify(phy, ifname, iface, state)
switch (state) {
case "DISCONNECTED":
case "AUTHENTICATING":
+ case "SCANNING":
msg.up = false;
break;
case "INTERFACE_DISABLED":