From 1480633f965cb846f99c46a2aecc4357f7478281 Mon Sep 17 00:00:00 2001 From: Dmitry Shmidt Date: Sun, 27 Feb 2011 17:08:15 +0200 Subject: [PATCH] Use longer timeout in wpa_ctrl_request() Wait longer for control interface response from wpa_supplicant to avoid issues with some drivers that have long blocking operations. --- src/common/wpa_ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/wpa_ctrl.c b/src/common/wpa_ctrl.c index c15193418..7c9b63848 100644 --- a/src/common/wpa_ctrl.c +++ b/src/common/wpa_ctrl.c @@ -237,7 +237,7 @@ int wpa_ctrl_request(struct wpa_ctrl *ctrl, const char *cmd, size_t cmd_len, os_free(cmd_buf); for (;;) { - tv.tv_sec = 2; + tv.tv_sec = 10; tv.tv_usec = 0; FD_ZERO(&rfds); FD_SET(ctrl->s, &rfds);