Add debug statements to analyze_pcap for missing packet layers
This commit is contained in:
parent
63a5bbba09
commit
c4e36048e5
1 changed files with 3 additions and 2 deletions
|
@ -316,8 +316,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:
|
||||
|
||||
if 'radiotap' not in packet or 'wlan' not in packet or not 'wlan.mgt' in packet.get_multiple_layers('wlan.mgt'):
|
||||
print(f"[DEBUG] Skipping packet due to missing layers: {packet}")
|
||||
continue
|
||||
|
||||
radio = packet.radiotap
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue