mirror of
https://github.com/justcallmekoko/ESP32Marauder.git
synced 2026-04-28 12:03:07 -07:00
Merge pull request #1052 from justcallmekoko/develop
Fix PCAPs not saving for MAC tracker
This commit is contained in:
@@ -7676,8 +7676,13 @@ void WiFiScan::beaconSnifferCallback(void* buf, wifi_promiscuous_pkt_type_t type
|
||||
int frame_check = wifi_scan_obj.update_mac_entry(src_addr, snifferPacket->rx_ctrl.rssi);
|
||||
|
||||
if (frame_check >= mac_history_len) {
|
||||
if (wifi_scan_obj.mac_entries[frame_check - mac_history_len].following)
|
||||
int32_t dloc = 0;
|
||||
bool is_following = is_following_candidate_light(wifi_scan_obj.mac_entries[frame_check - mac_history_len], millis(), &dloc);
|
||||
if (is_following) {
|
||||
wifi_scan_obj.mac_entries[frame_check - mac_history_len].dloc = dloc;
|
||||
wifi_scan_obj.mac_entries[frame_check - mac_history_len].following = is_following;
|
||||
buffer_obj.append(snifferPacket, len);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user