OLD | NEW |
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 Loading... |
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'))) |
OLD | NEW |