From f3eb998e7e646e91cc42b019dce4e347a505f3b6 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 23 Aug 2023 18:19:14 +0200 Subject: [PATCH] hostapd: in AP/STA, shut down AP interfaces when STA enters scanning state MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- package/network/services/hostapd/files/wpa_supplicant.uc | 1 + 1 file changed, 1 insertion(+) diff --git a/package/network/services/hostapd/files/wpa_supplicant.uc b/package/network/services/hostapd/files/wpa_supplicant.uc index e3a3afcff210..50da7f14ffe4 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": -- 2.30.2