Disable interface if ACS fails

In case of Automatic Channel Selection (ACS) failure, we do not have a
real fallback path. Interface still remains in ACS state. To reflect we
did not succeed with ACS, simply disable the interface and indicate this
to user/upper layer entity so that a suitable recovery or error
notification can be performed.

Signed-off-by: Pawel Kulakowski <pawel.kulakowski@tieto.com>
This commit is contained in:
Pawel Kulakowski 2014-03-06 10:40:54 +01:00 committed by Jouni Malinen
parent 13adbe23e9
commit 185677b74c

View file

@ -284,6 +284,7 @@ static void acs_fail(struct hostapd_iface *iface)
{ {
wpa_printf(MSG_ERROR, "ACS: Failed to start"); wpa_printf(MSG_ERROR, "ACS: Failed to start");
acs_cleanup(iface); acs_cleanup(iface);
hostapd_disable_iface(iface);
} }