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

Unified Diff: server/site_wifitest.py

Issue 3243010: use iw instead of iwconfig to control power save mode (Closed) Base URL: ssh://git@chromiumos-git//autotest.git
Patch Set: Created 10 years, 4 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_wifitest.py
diff --git a/server/site_wifitest.py b/server/site_wifitest.py
index a7852954691b696dcab1bfa99f46e74b485326f0..fc43906f2a9ea8ee6e8d938f85cbe63c420e52ad 100644
--- a/server/site_wifitest.py
+++ b/server/site_wifitest.py
@@ -265,12 +265,12 @@ class WiFiTest(object):
def client_powersave_on(self, params):
""" Enable power save operation """
- self.client.run("iwconfig %s power on" % self.client_wlanif)
+ self.client.run("iw dev %s set power_save on" % self.client_wlanif)
def client_powersave_off(self, params):
""" Disable power save operation """
- self.client.run("iwconfig %s power off" % self.client_wlanif)
+ self.client.run("iw dev %s set power_save off" % self.client_wlanif)
def __client_check(self, param, want):
« 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