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.
This commit is contained in:
Dmitry Shmidt 2011-02-27 17:08:15 +02:00 committed by Jouni Malinen
parent 36fde1e79c
commit 1480633f96

View 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);