From: Felix Fietkau Date: Wed, 23 Aug 2023 16:19:14 +0000 (+0200) Subject: hostapd: in AP/STA, shut down AP interfaces when STA enters scanning state X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=f3eb998e7e646e91cc42b019dce4e347a505f3b6;p=openwrt%2Fstaging%2Fjow.git 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 (李峻宇) Signed-off-by: Felix Fietkau --- diff --git a/package/network/services/hostapd/files/wpa_supplicant.uc b/package/network/services/hostapd/files/wpa_supplicant.uc index e3a3afcff2..50da7f14ff 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":