From 05e0cd161d4243f3740b917b1c0c224f6c16b8f6 Mon Sep 17 00:00:00 2001
From: dadav <33197631+dadav@users.noreply.github.com>
Date: Fri, 4 Oct 2019 12:22:16 +0200
Subject: [PATCH] Fix name conflict

---
 sdcard/rootfs/root/pwnagotchi/scripts/pwnagotchi/agent.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sdcard/rootfs/root/pwnagotchi/scripts/pwnagotchi/agent.py b/sdcard/rootfs/root/pwnagotchi/scripts/pwnagotchi/agent.py
index 023fa2e..98f8aab 100644
--- a/sdcard/rootfs/root/pwnagotchi/scripts/pwnagotchi/agent.py
+++ b/sdcard/rootfs/root/pwnagotchi/scripts/pwnagotchi/agent.py
@@ -129,11 +129,11 @@ class Agent(Client, AsyncAdvertiser, AsyncTrainer):
         wifi_running = self.is_module_running('wifi')
         if wifi_running and restart:
             logging.debug("restarting wifi module ...")
-            self.restart('wifi.recon')
+            self.restart_module('wifi.recon')
             self.run('wifi.clear')
         elif not wifi_running:
             logging.debug("starting wifi module ...")
-            self.start('wifi.recon')
+            self.start_module('wifi.recon')
 
         self.start_advertising()
 
@@ -388,10 +388,10 @@ class Agent(Client, AsyncAdvertiser, AsyncTrainer):
                 return m['running']
         return False
 
-    def start(self, module):
+    def start_module(self, module):
         self.run('%s on' % module)
 
-    def restart(self, module):
+    def restart_module(self, module):
         self.run('%s off; %s on' % (module, module))
 
     def _has_handshake(self, bssid):