aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/wpa_ctrl.c
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2011-02-27 15:08:15 (GMT)
committerJouni Malinen <j@w1.fi>2011-02-27 15:08:15 (GMT)
commit1480633f965cb846f99c46a2aecc4357f7478281 (patch)
tree73cf3bda8f473836a69590252ac745e24d9bd84a /src/common/wpa_ctrl.c
parent36fde1e79cd226a91ce2ae56ff065c409790d5d7 (diff)
downloadhostap-1480633f965cb846f99c46a2aecc4357f7478281.zip
hostap-1480633f965cb846f99c46a2aecc4357f7478281.tar.gz
hostap-1480633f965cb846f99c46a2aecc4357f7478281.tar.bz2
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.
Diffstat (limited to 'src/common/wpa_ctrl.c')
-rw-r--r--src/common/wpa_ctrl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/wpa_ctrl.c b/src/common/wpa_ctrl.c
index c151934..7c9b638 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);