Add debug print statement to display packet layers in analyze_pcap

This commit is contained in:
Yaro Kasear 2025-04-16 10:01:32 -05:00
parent d16d4bc171
commit 63a5bbba09

View file

@ -315,8 +315,9 @@ def analyze_pcap(pcapng_path, start_ts, end_ts, ap_bssid, ap_channel):
for packet in filtered_packets:
try:
print(f"[DEBUG] Layers: {[layer.layer_name for layer in packet.layers]}")
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