hwsim_test: Fix silly bug in select() result processing

This commit is contained in:
Jouni Malinen 2011-10-23 22:11:48 +03:00
parent 33d8a77a39
commit 8bdedb579a

View file

@ -213,9 +213,9 @@ int main(int argc, char *argv[])
if (r == 0) if (r == 0)
break; /* timeout */ break; /* timeout */
if (FD_SET(s1, &rfds)) if (FD_ISSET(s1, &rfds))
rx(s1, 1, argv[1], ifindex1, &res); rx(s1, 1, argv[1], ifindex1, &res);
if (FD_SET(s2, &rfds)) if (FD_ISSET(s2, &rfds))
rx(s2, 2, argv[2], ifindex2, &res); rx(s2, 2, argv[2], ifindex2, &res);
if (res.rx_unicast1 && res.rx_broadcast1 && if (res.rx_unicast1 && res.rx_broadcast1 &&