blob: 3381877483214642cc8b2505cba965e3d9777c65 [file] [log] [blame]
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from import wifi_cell_test_base
class network_WiFi_Roam(wifi_cell_test_base.WiFiCellTestBase):
"""Tests roaming to an AP that changes while the client is awake
This test run seeks to associate the DUT with an AP with a set of
association parameters, create a second AP with a second set of
parameters but the same SSID, and shut down the first DUT. We
seek to observe that the DUT successfully connects to the second
AP in a reasonable amount of time.
version = 1
def parse_additional_arguments(self, commandline_args, additional_params):
"""Hook into super class to take control files parameters.
@param commandline_args dict of parsed parameters from the autotest.
@param additional_params tuple of (HostapConfig,
self._router0_conf, self._router1_conf, self._client_conf = (
def run_once(self):
"""Test body."""
# Configure the inital AP.
router_ssid = self.context.router.get_ssid()
# Connect to the inital AP.
self._client_conf.ssid = router_ssid
# Setup a second AP with the same SSID.
self._router1_conf.ssid = router_ssid
self.context.configure(self._router1_conf, multi_interface=True)
# Tear down the AP instance that the DUT is currently connected to.
# Expect that the DUT will re-connect to the new AP.