diff options
| author | Felix Fietkau <nbd@nbd.name> | 2023-08-23 18:19:14 +0200 |
|---|---|---|
| committer | Felix Fietkau <nbd@nbd.name> | 2023-08-23 19:05:47 +0200 |
| commit | f3eb998e7e646e91cc42b019dce4e347a505f3b6 (patch) | |
| tree | 2c407c5a66e5aa5c2c05ad01a89ac3f0dde1aeb2 /package/network | |
| parent | aa5f2cb63c3869595486a1758cf0bd04c88436f1 (diff) | |
| download | upstream-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>
Diffstat (limited to 'package/network')
| -rw-r--r-- | package/network/services/hostapd/files/wpa_supplicant.uc | 1 |
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": |
