diff --git a/enrich.py b/enrich.py index f9efe8d..8da6012 100755 --- a/enrich.py +++ b/enrich.py @@ -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