]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Disable interface if ACS fails
authorPawel Kulakowski <pawel.kulakowski@tieto.com>
Thu, 6 Mar 2014 09:40:54 +0000 (10:40 +0100)
committerJouni Malinen <j@w1.fi>
Thu, 6 Mar 2014 21:12:33 +0000 (23:12 +0200)
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>
src/ap/acs.c

index 60b75800d3acf635cb7ab0ec190cb251cfbba61c..3e0155c7a6c2b014035739499ef07cb38d43c498 100644 (file)
@@ -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);
 }