mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
@ -166,7 +166,7 @@ class auto_tune(plugins.Plugin):
|
|||||||
iname, iname, "False", checked)
|
iname, iname, "False", checked)
|
||||||
ret += "</td>"
|
ret += "</td>"
|
||||||
else:
|
else:
|
||||||
ret += '<th>%s</th>' % (p)
|
ret += '<th>%s</th>' % p
|
||||||
ret += '<td><input type=text id="%s" name="%s" size="5" value="%s"></td>' % (
|
ret += '<td><input type=text id="%s" name="%s" size="5" value="%s"></td>' % (
|
||||||
iname, iname, sec[p])
|
iname, iname, sec[p])
|
||||||
# ret += '<tr><th>%s</th>' % ("" if p not in self.descriptions else self.descriptions[p])
|
# ret += '<tr><th>%s</th>' % ("" if p not in self.descriptions else self.descriptions[p])
|
||||||
@ -184,7 +184,7 @@ class auto_tune(plugins.Plugin):
|
|||||||
histo = self._histogram
|
histo = self._histogram
|
||||||
nloops = int(histo["loops"])
|
nloops = int(histo["loops"])
|
||||||
if nloops > 0:
|
if nloops > 0:
|
||||||
ret += "<h2>APs per Channel over %s epochs</h2>" % (nloops)
|
ret += "<h2>APs per Channel over %s epochs</h2>" % nloops
|
||||||
ret += "<table border=1 spacing=4 cellspacing=1>"
|
ret += "<table border=1 spacing=4 cellspacing=1>"
|
||||||
chans = "<tr><th>Channel</th>"
|
chans = "<tr><th>Channel</th>"
|
||||||
totals = "<tr><th>APs seen</th>"
|
totals = "<tr><th>APs seen</th>"
|
||||||
@ -229,7 +229,7 @@ class auto_tune(plugins.Plugin):
|
|||||||
logging.debug("Skipping no-name %s '%s'" % (ap['hostname'], lmac))
|
logging.debug("Skipping no-name %s '%s'" % (ap['hostname'], lmac))
|
||||||
numHidden += 1
|
numHidden += 1
|
||||||
continue # skip hidden APs
|
continue # skip hidden APs
|
||||||
elif ap['hostname'] == None and not self.options['show_hidden']:
|
elif ap['hostname'] is None and not self.options['show_hidden']:
|
||||||
logging.debug("Skipping None %s '%s'" % (ap['hostname'], lmac))
|
logging.debug("Skipping None %s '%s'" % (ap['hostname'], lmac))
|
||||||
numHidden += 1
|
numHidden += 1
|
||||||
continue # skip hidden APs
|
continue # skip hidden APs
|
||||||
@ -487,7 +487,7 @@ class auto_tune(plugins.Plugin):
|
|||||||
self._known_aps[apID][p] = access_point[p]
|
self._known_aps[apID][p] = access_point[p]
|
||||||
|
|
||||||
# if wasn't visible, increment current count
|
# if wasn't visible, increment current count
|
||||||
if self._known_aps[apID]['AT_visible'] == False:
|
if not self._known_aps[apID]['AT_visible']:
|
||||||
self._known_aps[apID]['AT_visible'] = True
|
self._known_aps[apID]['AT_visible'] = True
|
||||||
self._known_aps[apID]['AT_seen'] += 1
|
self._known_aps[apID]['AT_seen'] += 1
|
||||||
self.incrementChisto('Current APs', channel)
|
self.incrementChisto('Current APs', channel)
|
||||||
@ -495,7 +495,7 @@ class auto_tune(plugins.Plugin):
|
|||||||
# increment context count in the AP data
|
# increment context count in the AP data
|
||||||
self._known_aps[apID][tag] = 1 if tag not in self._known_aps[apID] else self._known_aps[apID][tag] + 1
|
self._known_aps[apID][tag] = 1 if tag not in self._known_aps[apID] else self._known_aps[apID][tag] + 1
|
||||||
if not context:
|
if not context:
|
||||||
logging.info("Returning AP: %s" % (apID))
|
logging.info("Returning AP: %s" % apID)
|
||||||
|
|
||||||
self._known_aps[apID]['AT_lastseen'] = time.time()
|
self._known_aps[apID]['AT_lastseen'] = time.time()
|
||||||
return True
|
return True
|
||||||
@ -559,7 +559,7 @@ class auto_tune(plugins.Plugin):
|
|||||||
self.incrementChisto('Missed joins', channel)
|
self.incrementChisto('Missed joins', channel)
|
||||||
logging.warn("Unknown AP '%s' seen leaving" % apID)
|
logging.warn("Unknown AP '%s' seen leaving" % apID)
|
||||||
else:
|
else:
|
||||||
if self._known_aps[apID]['AT_visible'] == False:
|
if not self._known_aps[apID]['AT_visible']:
|
||||||
self.incrementChisto('Missed rejoins', channel)
|
self.incrementChisto('Missed rejoins', channel)
|
||||||
logging.warn("AP '%s' already gone", apID)
|
logging.warn("AP '%s' already gone", apID)
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user