aboutsummaryrefslogtreecommitdiffstats
path: root/mac80211_hwsim
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-10-23 19:11:48 (GMT)
committerJouni Malinen <j@w1.fi>2011-10-23 19:14:04 (GMT)
commit8bdedb579a828fa01b41e7f9b92c00c2ed40dedf (patch)
tree1afffaf691ec95562ebd776b88afd740ac4cf6a0 /mac80211_hwsim
parent33d8a77a390d565795a069b07ac78645ad74c4b7 (diff)
downloadhostap-8bdedb579a828fa01b41e7f9b92c00c2ed40dedf.zip
hostap-8bdedb579a828fa01b41e7f9b92c00c2ed40dedf.tar.gz
hostap-8bdedb579a828fa01b41e7f9b92c00c2ed40dedf.tar.bz2
hwsim_test: Fix silly bug in select() result processing
Diffstat (limited to 'mac80211_hwsim')
-rw-r--r--mac80211_hwsim/tools/hwsim_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mac80211_hwsim/tools/hwsim_test.c b/mac80211_hwsim/tools/hwsim_test.c
index 1ac0173..d17ed61 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 &&