]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hwsim_test: Fix silly bug in select() result processing
authorJouni Malinen <j@w1.fi>
Sun, 23 Oct 2011 19:11:48 +0000 (22:11 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 23 Oct 2011 19:14:04 +0000 (22:14 +0300)
mac80211_hwsim/tools/hwsim_test.c

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