hostapd: in AP/STA, shut down AP interfaces when STA enters scanning state
authorFelix Fietkau <nbd@nbd.name>
Wed, 23 Aug 2023 16:19:14 +0000 (18:19 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 23 Aug 2023 17:05:47 +0000 (19:05 +0200)
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>
package/network/services/hostapd/files/wpa_supplicant.uc

index e3a3afcff21004361e0bedd2cd330ffd1f6d3476..50da7f14ffe4f68f0619afcd9c836d0c3bec4e66 100644 (file)
@@ -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":