Fix AP mode in wpa_supplicant with interface events
Needs to not trigger a scan here when the AP mode setup sets interface down/up.
This commit is contained in:
parent
0314e26a61
commit
9919f7a22b
1 changed files with 7 additions and 3 deletions
|
@ -1805,9 +1805,13 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
|
||||||
case EVENT_INTERFACE_ENABLED:
|
case EVENT_INTERFACE_ENABLED:
|
||||||
wpa_printf(MSG_DEBUG, "Interface was enabled");
|
wpa_printf(MSG_DEBUG, "Interface was enabled");
|
||||||
if (wpa_s->wpa_state == WPA_INTERFACE_DISABLED) {
|
if (wpa_s->wpa_state == WPA_INTERFACE_DISABLED) {
|
||||||
|
if (!wpa_s->ap_iface) {
|
||||||
wpa_supplicant_set_state(wpa_s,
|
wpa_supplicant_set_state(wpa_s,
|
||||||
WPA_DISCONNECTED);
|
WPA_DISCONNECTED);
|
||||||
wpa_supplicant_req_scan(wpa_s, 0, 0);
|
wpa_supplicant_req_scan(wpa_s, 0, 0);
|
||||||
|
} else
|
||||||
|
wpa_supplicant_set_state(wpa_s,
|
||||||
|
WPA_COMPLETED);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case EVENT_INTERFACE_DISABLED:
|
case EVENT_INTERFACE_DISABLED:
|
||||||
|
|
Loading…
Reference in a new issue