From: Pawel Kulakowski Date: Thu, 6 Mar 2014 09:40:54 +0000 (+0100) Subject: Disable interface if ACS fails X-Git-Tag: hostap_2_2~650 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=185677b74c9287fb3698dcf7cea61b8595d9fb1d;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/ap/acs.c b/src/ap/acs.c index 60b75800d..3e0155c7a 100644 --- a/src/ap/acs.c +++ b/src/ap/acs.c @@ -284,6 +284,7 @@ static void acs_fail(struct hostapd_iface *iface) { wpa_printf(MSG_ERROR, "ACS: Failed to start"); acs_cleanup(iface); + hostapd_disable_iface(iface); }