Home | History | Annotate | Download | only in network_WiFi_Reassociate
      1 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 from autotest_lib.client.common_lib.cros.network import xmlrpc_datatypes
      6 from autotest_lib.server.cros.network import hostap_config
      7 from autotest_lib.server.cros.network import wifi_cell_test_base
      8 
      9 
     10 class network_WiFi_Reassociate(wifi_cell_test_base.WiFiCellTestBase):
     11     """Timing test for wpa_supplicant reassociate operation."""
     12     version = 1
     13 
     14     def run_once(self):
     15         """Setup and connect to an AP, then perform reassociate test."""
     16         ap_config = hostap_config.HostapConfig(channel=6)
     17         self.context.configure(ap_config)
     18         client_conf = xmlrpc_datatypes.AssociationParameters(
     19                 ssid=self.context.router.get_ssid())
     20         self.context.assert_connect_wifi(client_conf)
     21         self.context.client.reassociate(timeout_seconds=10)
     22