Use longer timeout in wpa_ctrl_request()
authorDmitry Shmidt <dimitrysh@google.com>
Sun, 27 Feb 2011 15:08:15 +0000 (17:08 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 27 Feb 2011 15:08:15 +0000 (17:08 +0200)
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

index c151934..7c9b638 100644 (file)
@@ -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);