mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Add gps validy check
This commit is contained in:
@ -241,6 +241,12 @@ def on_internet_available(agent):
|
|||||||
SKIP.append(gps_file)
|
SKIP.append(gps_file)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if gps_data['Latitude'] == 0 and gps_data['Longitude'] == 0:
|
||||||
|
logging.warning("WIGLE: Not enough gps-informations for %s. Trying again next time.", gps_file)
|
||||||
|
SKIP.append(gps_file)
|
||||||
|
continue
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
pcap_data = extract_from_pcap(pcap_filename, [WifiInfo.BSSID,
|
pcap_data = extract_from_pcap(pcap_filename, [WifiInfo.BSSID,
|
||||||
WifiInfo.ESSID,
|
WifiInfo.ESSID,
|
||||||
|
Reference in New Issue
Block a user