From 4be921ac605a6dd41f7bb36508702bbd80c3ab67 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 4 Jul 2012 21:36:38 +0300 Subject: [PATCH] eloop: Fix EVENT_TYPE_WRITE with poll()-based eloop This needs to use POLLOUT instead of POLLIN to get the correct event. Signed-hostap: Jouni Malinen --- src/utils/eloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/eloop.c b/src/utils/eloop.c index b50ea92fc..bb3240115 100644 --- a/src/utils/eloop.c +++ b/src/utils/eloop.c @@ -278,7 +278,7 @@ static int eloop_sock_table_set_fds(struct eloop_sock_table *readers, pollfds_map[fd] = pfd; nxt++; } - pfd->events |= POLLIN; + pfd->events |= POLLOUT; } }