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:
Mateusz Kwiatkowski 2021-12-14 16:47:40 +01:00 committed by Carles Cufí
parent ca1cda28f0
commit e8c12f2af0

View file

@ -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;