Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Unified Diff: server/site_linux_router.py

Issue 3972003: Add AP command to set AP transmit power (Closed) Base URL: ssh://gitrw.chromium.org/autotest.git
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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')))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698