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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import logging, re, time 5 import logging, re, time
6 from autotest_lib.client.common_lib import error 6 from autotest_lib.client.common_lib import error
7 from autotest_lib.server import site_eap_tls 7 from autotest_lib.server import site_eap_tls
8 8
9 def isLinuxRouter(router): 9 def isLinuxRouter(router):
10 router_uname = router.run('uname').stdout 10 router_uname = router.run('uname').stdout
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 else: 325 else:
326 raise error.TestFail("Unable to delete bridge %s: %s" % 326 raise error.TestFail("Unable to delete bridge %s: %s" %
327 (self.bridgeif, result.stderr)) 327 (self.bridgeif, result.stderr))
328 328
329 329
330 self.hostapd['configured'] = False 330 self.hostapd['configured'] = False
331 331
332 332
333 def get_ssid(self): 333 def get_ssid(self):
334 return self.hostapd['conf']['ssid'] 334 return self.hostapd['conf']['ssid']
335
336
337 def set_txpower(self, params):
338 self.router.run("%s dev %s set txpower %s" %
339 (self.cmd_iw, params.get('interface',
340 self.hostapd['interface']),
341 params.get('power', 'auto')))
OLDNEW
« 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