]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
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 c151934184a905143582d345008f760def1025ec..7c9b638480fa9b73623ceabeb32e94884e259527 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);