[PATCHv2 1/3] hostap: allow to run event loop multiple times in a row

Simon Wunderlich simon.wunderlich
Mon Mar 25 10:16:35 PDT 2013


DFS implementation requires to run an eventloop while monitoring
the Channel Availability Check (CAC). After that, the "real" event
loop is started, and should not fail doing so.

Signed-hostap: Simon Wunderlich <siwu at hrz.tu-chemnitz.de>
---
 src/utils/eloop.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/utils/eloop.c b/src/utils/eloop.c
index 2de3e01..f62e2b7 100644
--- a/src/utils/eloop.c
+++ b/src/utils/eloop.c
@@ -799,6 +799,7 @@ void eloop_run(void)
 #endif /* CONFIG_ELOOP_POLL */
 	}
 
+	eloop.terminate = 0;
 out:
 #ifndef CONFIG_ELOOP_POLL
 	os_free(rfds);
-- 
1.7.10.4




More information about the Hostap mailing list