misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
Simone Margaritelli 2019-10-07 14:12:22 +02:00
parent d6efc0b70d
commit 4827dc65ed
No known key found for this signature in database
GPG Key ID: 82E42E7F3B34C97E

View File

@ -95,6 +95,8 @@ def parse_pcap(filename):
for pkt in rdpcap(filename): for pkt in rdpcap(filename):
info = parse_packet(pkt, info) info = parse_packet(pkt, info)
if 'essid' in info and info['essid'] is not None and 'bssid' in info and info['bssid'] is not None:
break
bssid = info['bssid'] if 'bssid' in info else None bssid = info['bssid'] if 'bssid' in info else None
essid = info['essid'] if 'essid' in info else None essid = info['essid'] if 'essid' in info else None