print warning on option --do_rcascan if packet injection possible not working by driver
@@ -92,6 +92,7 @@ static int gpsd_len;
static int errorcount;
static int maxerrorcount;
+static int injectioncount;
static unsigned long long int incommingcount;
static unsigned long long int outgoingcount;
@@ -532,9 +533,19 @@ for(c = 0; c < aplistcount; c++)
}
zeiger++;
}
+injectioncount++;
+if((injectioncount >= 20) && (rangecount == 0))
+ {
+ fprintf(stdout, "INFO: cha=%d, rx=%llu, rx(dropped)=%llu, tx=%llu, err=%d, aps=%d (%d in range, WARNING: packet injection possible not working)\n"
+ "------------------------------------------------------------------------------------------------------------------------------\n"
+ , channelscanlist[cpa], incommingcount, droppedcount, outgoingcount, errorcount, aplistcount, rangecount);
+ }
+else
+ {
fprintf(stdout, "INFO: cha=%d, rx=%llu, rx(dropped)=%llu, tx=%llu, err=%d, aps=%d (%d in range)\n"
- "-----------------------------------------------------------------------------------\n"
+ "------------------------------------------------------------------------------\n"
, channelscanlist[cpa], incommingcount, droppedcount, outgoingcount, errorcount, aplistcount, rangecount);
+ }
return;
}
/*===========================================================================*/
@@ -4434,6 +4445,7 @@ fd_rcascanpcapng = 0;
errorcount = 0;
incommingcount = 0;
+injectioncount = 0;
droppedcount = 0;
outgoingcount = 0;
