From e8c12f2af0b52269b5775d48f4360c7928210253 Mon Sep 17 00:00:00 2001 From: Mateusz Kwiatkowski Date: Tue, 14 Dec 2021 16:47:40 +0100 Subject: [PATCH] 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 --- drivers/wifi/eswifi/eswifi_socket_offload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/wifi/eswifi/eswifi_socket_offload.c b/drivers/wifi/eswifi/eswifi_socket_offload.c index ffa01b33c1..5df1e9e5f8 100644 --- a/drivers/wifi/eswifi/eswifi_socket_offload.c +++ b/drivers/wifi/eswifi/eswifi_socket_offload.c @@ -458,7 +458,7 @@ static int eswifi_socket_poll(struct zsock_pollfd *fds, int nfds, int msecs) 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) { errno = ETIMEDOUT; return -1;