Ver Fonte

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 (李峻宇) <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau há 2 anos atrás
pai
commit
f3eb998e7e

+ 1 - 0
package/network/services/hostapd/files/wpa_supplicant.uc

@@ -188,6 +188,7 @@ function iface_hostapd_notify(phy, ifname, iface, state)
 	switch (state) {
 	switch (state) {
 	case "DISCONNECTED":
 	case "DISCONNECTED":
 	case "AUTHENTICATING":
 	case "AUTHENTICATING":
+	case "SCANNING":
 		msg.up = false;
 		msg.up = false;
 		break;
 		break;
 	case "INTERFACE_DISABLED":
 	case "INTERFACE_DISABLED":