ACS: Do not get stuck while failing to do a subsequent scan
Return control flow to hostapd by calling hostapd_acs_completed() if requesting a scan from the underlying device fails. Signed-hostapd: Helmut Schaa <helmut.schaa@googlemail.com>
This commit is contained in:
parent
813d4bac5a
commit
770ecdf27c
|
@ -729,14 +729,17 @@ static void acs_scan_complete(struct hostapd_iface *iface)
|
||||||
err = acs_request_scan(iface);
|
err = acs_request_scan(iface);
|
||||||
if (err) {
|
if (err) {
|
||||||
wpa_printf(MSG_ERROR, "ACS: Failed to request scan");
|
wpa_printf(MSG_ERROR, "ACS: Failed to request scan");
|
||||||
acs_fail(iface);
|
goto fail;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
acs_study(iface);
|
acs_study(iface);
|
||||||
|
return;
|
||||||
|
fail:
|
||||||
|
hostapd_acs_completed(iface, 1);
|
||||||
|
acs_fail(iface);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue