Skip to content

Commit 47b63c3

Browse files
committed
drivers: wifi: eswifi: Add ZSOCK_POLLOUT revent in eswifi_socket_poll to enable send operation.
1 parent 453ae0c commit 47b63c3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/wifi/eswifi/eswifi_socket_offload.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ LOG_MODULE_DECLARE(LOG_MODULE_NAME);
1414
#include <stdlib.h>
1515
#include <errno.h>
1616

17+
#include <zephyr/posix/fcntl.h>
1718
#include <zephyr/net/socket_offload.h>
1819
#include <zephyr/net/tls_credentials.h>
1920

@@ -515,6 +516,10 @@ static int eswifi_socket_poll(struct zsock_pollfd *fds, int nfds, int msecs)
515516
return -1;
516517
}
517518

519+
if ((fds[0].events & ZSOCK_POLLOUT)) {
520+
fds[0].revents = ZSOCK_POLLOUT;
521+
}
522+
518523
if (!k_fifo_is_empty(&socket->fifo)) {
519524
goto done;
520525
}

0 commit comments

Comments
 (0)