[PATCH] Disable interface when ACS failed
Pawel Kulakowski
pawel.kulakowski
Thu Mar 6 01:40:54 PST 2014
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 so user can reflect something went wrong.
Signed-off-by: Pawel Kulakowski <pawel.kulakowski at tieto.com>
---
src/ap/acs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/ap/acs.c b/src/ap/acs.c
index f58b091..11cd439 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);
}
--
1.7.9.5
More information about the Hostap
mailing list