OLD | NEW |
1 #!/usr/bin/python | |
2 | |
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
4 # 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 |
5 # found in the LICENSE file. | 3 # found in the LICENSE file. |
6 | 4 |
7 import copy | 5 import copy |
8 import dbus | 6 import dbus |
9 import logging | 7 import logging |
10 import os | 8 import os |
11 import time | 9 import time |
12 | 10 |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 else: | 341 else: |
344 service_path = self.GetServicePath(router['ssid']) | 342 service_path = self.GetServicePath(router['ssid']) |
345 assert service_path, 'Service with SSID %s is not present.' % \ | 343 assert service_path, 'Service with SSID %s is not present.' % \ |
346 router['ssid'] | 344 router['ssid'] |
347 | 345 |
348 logging.debug('Connecting to router %s.' % router_name) | 346 logging.debug('Connecting to router %s.' % router_name) |
349 error_string = self.ConnectToWifiNetwork(service_path, | 347 error_string = self.ConnectToWifiNetwork(service_path, |
350 password=passphrase, | 348 password=passphrase, |
351 shared=shared) | 349 shared=shared) |
352 return error_string | 350 return error_string |
OLD | NEW |