Index: server/site_linux_router.py |
diff --git a/server/site_linux_router.py b/server/site_linux_router.py |
index 2405fe586adb058c5ab8ed0758e39cddd4d54d6e..346c952c34f3fb8883fbc87faae2e85f6ec0b86c 100644 |
--- a/server/site_linux_router.py |
+++ b/server/site_linux_router.py |
@@ -332,3 +332,10 @@ class LinuxRouter(object): |
def get_ssid(self): |
return self.hostapd['conf']['ssid'] |
+ |
+ |
+ def set_txpower(self, params): |
+ self.router.run("%s dev %s set txpower %s" % |
+ (self.cmd_iw, params.get('interface', |
+ self.hostapd['interface']), |
+ params.get('power', 'auto'))) |