diff --git a/mac80211_hwsim/tools/hwsim_test.c b/mac80211_hwsim/tools/hwsim_test.c index 1ac017327..d17ed6126 100644 --- a/mac80211_hwsim/tools/hwsim_test.c +++ b/mac80211_hwsim/tools/hwsim_test.c @@ -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 &&