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 <j@w1.fi>
This commit is contained in:
Jouni Malinen 2012-07-04 21:36:38 +03:00
parent b682d6a73d
commit 4be921ac60

View file

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