From 185677b74c9287fb3698dcf7cea61b8595d9fb1d Mon Sep 17 00:00:00 2001 From: Pawel Kulakowski Date: Thu, 6 Mar 2014 10:40:54 +0100 Subject: [PATCH] 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 --- src/ap/acs.c | 1 + 1 file changed, 1 insertion(+) 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); }