diff options
author | Jouni Malinen <j@w1.fi> | 2011-10-23 22:11:48 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2011-10-23 22:14:04 +0300 |
commit | 8bdedb579a828fa01b41e7f9b92c00c2ed40dedf (patch) | |
tree | 1afffaf691ec95562ebd776b88afd740ac4cf6a0 /mac80211_hwsim | |
parent | 33d8a77a390d565795a069b07ac78645ad74c4b7 (diff) | |
download | external_wpa_supplicant_8_ti-8bdedb579a828fa01b41e7f9b92c00c2ed40dedf.zip external_wpa_supplicant_8_ti-8bdedb579a828fa01b41e7f9b92c00c2ed40dedf.tar.gz external_wpa_supplicant_8_ti-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.c | 4 |
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 && |