Add debug print statement for missing packet layers in analyze_pcap

This commit is contained in:
Yaro Kasear 2025-04-16 10:00:36 -05:00
parent 5af62780ef
commit d16d4bc171

View file

@ -316,6 +316,7 @@ def analyze_pcap(pcapng_path, start_ts, end_ts, ap_bssid, ap_channel):
for packet in filtered_packets:
try:
if 'radiotap' not in packet or 'wlan' not in packet or 'wlan.mgt' not in packet:
print(f"[!] Packet does not contain required layers: {packet}")
continue
radio = packet.radiotap