diff mbox

[2/2] hostapd: set 5 sec timeout for channel list update

Message ID 1390601544-2866-2-git-send-email-janusz.dziedzic@tieto.com
State Accepted
Headers show

Commit Message

Janusz.Dziedzic@tieto.com Jan. 24, 2014, 10:12 p.m. UTC
Before this patch we have 1 second timeout for
regulatory update. In some cases, specially when
we reload driver modules on some slower platforms
this could take more than 1 second (about 2 second).
This is important specially for DFS case, where we
have to have correct dfs region before we will start
CAC. In other case (unknown DFS region) CAC will fail.
5 seconds should be enough for all cases.

Signed-hostap: Janusz Dziedzic <janusz.dziedzic@tieto.com>
---
 src/ap/hostapd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c
index 44d05c5..48f1c55 100644
--- a/src/ap/hostapd.c
+++ b/src/ap/hostapd.c
@@ -1028,7 +1028,7 @@  static int setup_interface(struct hostapd_iface *iface)
 		if (os_strncmp(previous_country, country, 2) != 0) {
 			wpa_printf(MSG_DEBUG, "Continue interface setup after channel list update");
 			iface->wait_channel_update = 1;
-			eloop_register_timeout(1, 0,
+			eloop_register_timeout(5, 0,
 					       channel_list_update_timeout,
 					       iface, NULL);
 			return 0;