diff mbox

Disable interface when ACS failed

Message ID 1394098854-3607-1-git-send-email-pawel.kulakowski@tieto.com
State Accepted
Headers show

Commit Message

Pawel Kulakowski March 6, 2014, 9:40 a.m. UTC
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@tieto.com>
---
 src/ap/acs.c |    1 +
 1 file changed, 1 insertion(+)

Comments

Jouni Malinen March 6, 2014, 9:54 p.m. UTC | #1
On Thu, Mar 06, 2014 at 10:40:54AM +0100, Pawel Kulakowski wrote:
> 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.

Thanks, applied.
diff mbox

Patch

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);
 }