Signed-off-by: jayofelony <oudshoorn.jeroen@gmail.com>
This commit is contained in:
jayofelony
2024-06-30 20:07:53 +02:00
parent 28335419f6
commit 087fd9cf09

View File

@ -60,10 +60,8 @@ def pwnagotchi_cli():
channels = agent.get_access_points_by_channel()
# for each channel
for ch, aps in channels:
while True:
time.sleep(1)
agent.set_channel(ch)
if agent.get_current_channel() == ch:
break
if not agent.is_stale() and agent.any_activity():
logging.info("%d access points on channel %d" % (len(aps), ch))