From 3486020e54e2c69d1379a8dea30dd825821af59c Mon Sep 17 00:00:00 2001 From: jayofelony Date: Sat, 23 Nov 2024 13:41:17 +0100 Subject: [PATCH] Update build Signed-off-by: jayofelony --- pwnagotchi/plugins/default/auto-tune.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pwnagotchi/plugins/default/auto-tune.py b/pwnagotchi/plugins/default/auto-tune.py index 0b76948d..bf20ca38 100644 --- a/pwnagotchi/plugins/default/auto-tune.py +++ b/pwnagotchi/plugins/default/auto-tune.py @@ -38,6 +38,7 @@ class auto_tune(plugins.Plugin): self._active_channels = [] # list of channels with APs found in last scan self._known_aps = {} # dict of all APs by normalized name+mac self._known_clients = {} # dict of all clients by normalized APmac+STAmac (many clients to not have names) + self._agent = None self.descriptions = { # descriptions of personality variables displayed in webui "advertise": "enable/disable advertising to mesh peers", @@ -395,12 +396,8 @@ class auto_tune(plugins.Plugin): def on_ui_update(self, ui): try: - if self._agent.mode == 'manual': - mode = 'MANU' - ui.set('mode', mode) - else: - mode = 'AT' - ui.set('mode', mode) + mode = 'AT' + ui.set('mode', mode) except Exception as e: logging.exception(e)