Просмотр исходного кода

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 2 лет назад
Родитель
Сommit
f3eb998e7e
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      package/network/services/hostapd/files/wpa_supplicant.uc

+ 1 - 0
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":