wificurse

wifi jamming tool
git clone git://git.2f30.org/wificurse.git
Log | Files | Refs | README | LICENSE

commit b0b6971d8b0c3cb17d76a62fe875588beee6f5bb
parent 00429c22df2816dac503e26f7fa9176528ecc9c2
Author: oblique <psyberbits@gmail.com>
Date:   Thu Mar  1 21:03:55 +0200

fix a bug in main

Diffstat:
wificurse.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/wificurse.c b/wificurse.c @@ -346,12 +346,10 @@ int main(int argc, char *argv[]) { if (pfd[1].revents & POLLIN) { ret = read_bssid(dev.fd, bssid); - if (ret == -EAGAIN) /* no bssid */ - continue; - else if (ret < 0) { /* error */ + if (ret < 0 && ret != -EAGAIN) { /* error */ print_error(); goto _errout; - } else { /* got BSSID */ + } else if (ret == 0) { /* got BSSID */ printf("DoS BSSID "); print_mac(bssid); printf("\n");