drivers: wifi: eswifi: fix socket poll timeout
Fix a problem introduced in 6ea54db334
that caused the poll operation to
take 10x more time than intended.
Signed-off-by: Mateusz Kwiatkowski <kfyatek+publicgit@gmail.com>
This commit is contained in:
parent
ca1cda28f0
commit
e8c12f2af0
|
@ -458,7 +458,7 @@ static int eswifi_socket_poll(struct zsock_pollfd *fds, int nfds, int msecs)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = k_sem_take(&socket->read_sem, K_MSEC(msecs*10));
|
ret = k_sem_take(&socket->read_sem, K_MSEC(msecs));
|
||||||
if (ret) {
|
if (ret) {
|
||||||
errno = ETIMEDOUT;
|
errno = ETIMEDOUT;
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in a new issue