Skip to content

Commit 14ae586

Browse files
author
=
committed
count BEACONs and PROBERESPONSEs when running in active rcascan mode
1 parent 5d085be commit 14ae586

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

hcxdumptool.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5993,8 +5993,10 @@ if(errorcount > 0)
59935993
if(errortxcount > 0) fprintf(stderr, "%u TX ERROR(s) during runtime (mostly caused by a broken driver or a shared interface)\n", errortxcount);
59945994
if(rcascanmode == RCASCAN_ACTIVE)
59955995
{
5996-
if(beaconrcascancount == 0) fprintf(stderr, "0 BEACONs received (monitor mode is possibly not working)\n");
5997-
if(proberesponsercascancount == 0) fprintf(stderr, "0 PROBERESPONSEs received (packet injection is possibly not working)\n");
5996+
if(beaconrcascancount > 0) fprintf(stderr, "%" PRIu64 " BEACONs received\n", beaconrcascancount);
5997+
else fprintf(stderr, "0 BEACONs received (monitor mode is possibly not working)\n");
5998+
if(proberesponsercascancount > 0) fprintf(stderr, "%" PRIu64 " PROBERESPONSEs received \n", proberesponsercascancount);
5999+
else fprintf(stderr, "0 PROBERESPONSEs received (packet injection is possibly not working)\n");
59986000
}
59996001
if((uid == 0) && (ftcflag == true)) save_ftc();
60006002
if(exiteapolflag != 0)

0 commit comments

Comments
 (0)