@@ -628,6 +628,26 @@ else if(rds == 4)
628628 }
629629 }
630630 }
631+ else if (rds == 5 )
632+ {
633+ qsort (aplist , APLIST_MAX , APLIST_SIZE , sort_aplist_by_tsresponse );
634+ for (i = 0 ; i < APLIST_MAX - 1 ; i ++ )
635+ {
636+ if ((aplist + i )-> tsakt == 0 ) break ;
637+ tvlast = (aplist + i )-> tsakt / 1000000000ULL ;
638+ strftime (timestring , TIMESTRING_LEN , "%H:%M:%S" , localtime (& tvlast ));
639+ if ((aplist + i )-> apdata -> tsresponse > 0 )
640+ {
641+ tvlast = (aplist + i )-> apdata -> tsresponse / 1000000000ULL ;
642+ strftime (timestringresponse , TIMESTRING_LEN , "%H:%M:%S" , localtime (& tvlast ));
643+ fprintf (stdout , "%3u|%s|%s|%4d|%02x%02x%02x%02x%02x%02x|%.*s\n" ,
644+ (aplist + i )-> apdata -> channel , timestring , timestringresponse , (s8 )(aplist + i )-> apdata -> rtrssi ,
645+ (aplist + i )-> apdata -> maca [00 ], (aplist + i )-> apdata -> maca [01 ], (aplist + i )-> apdata -> maca [02 ],
646+ (aplist + i )-> apdata -> maca [03 ], (aplist + i )-> apdata -> maca [04 ], (aplist + i )-> apdata -> maca [05 ],
647+ (aplist + i )-> apdata -> essidlen , (aplist + i )-> apdata -> essid );
648+ }
649+ }
650+ }
631651qsort (aplist , APLIST_MAX , APLIST_SIZE , sort_aplist_by_tsakt );
632652return ;
633653}
@@ -5373,6 +5393,9 @@ fprintf(stdout, "--ftc : enable fake time clock\n"
53735393 " 2 = show APs on current channel sorted by RSSI\n"
53745394 " 3 = show APs of all channels sorted by RSSI\n"
53755395 " 4 = show only APs in range on current channel sorted by PROBERESPONSE timestamp\n"
5396+ " requires --rcascan=active\n"
5397+ " 5 = show only APs of all channels sorted by PROBERESPONSE timestamp\n"
5398+ " requires --rcascan=active\n"
53765399 "--rdt : disable TIOCGWINSZ for real time displays\n"
53775400 "--rcascan=<mode> : radio channel assessment scan\n"
53785401 " (a)ctive = active scan (transmit undirected PROBEREQUEST frames)\n"
0 commit comments