diff --git a/kismet_enrich_from_pcap.py b/kismet_enrich_from_pcap.py index ca9fa03..80f69a7 100755 --- a/kismet_enrich_from_pcap.py +++ b/kismet_enrich_from_pcap.py @@ -122,7 +122,11 @@ def get_clients_on_channel(capture, ap_channel, ap_bssid): radio = packet.radiotap wlan = packet.wlan - packet_freq = int(getattr(radio, 'channel_freq', -1)) + if not hasattr(radio, 'channel') or not hasattr(radio.channel, 'freq'): + continue + + packet_freq = int(radio.channel.freq) + packet_channel = get_channel_from_freq(packet_freq) if packet_channel != ap_channel: