# Copyright 2014 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. AUTHOR = 'matthewmwang' TIME = 'SHORT' NAME = 'network_WiFi_RoamFT.mixedEAP' TEST_TYPE = 'Server' ATTRIBUTES = ('suite:wifi_matfunc') DEPENDENCIES = 'wificell' DOC = """ This test attempts to verify that we can connect to and roam to and from APs that support FT mixed mode for EAP in full view of the DUT. This ensures that devices that don't support FT are still compatible with APs that do. Fast BSS Transition is part of the 802.11r protocol, which describes a procedure for fast roaming from one AP to another within an SSID. """ from autotest_lib.client.common_lib.cros import site_eap_certs from autotest_lib.client.common_lib.cros.network import xmlrpc_security_types def run(machine): # TODO(crbug.com/977722): we shouldn't need different certs. Remove this # once the bug is resolved. ft_eap_config1 = xmlrpc_security_types.WPAEAPConfig( server_ca_cert=site_eap_certs.ca_cert_1, server_cert=site_eap_certs.server_cert_1, server_key=site_eap_certs.server_private_key_1, client_ca_cert=site_eap_certs.ca_cert_1, client_cert=site_eap_certs.client_cert_1, client_key=site_eap_certs.client_private_key_1, wpa_mode=xmlrpc_security_types.WPAConfig.MODE_PURE_WPA2, ft_mode=xmlrpc_security_types.WPAConfig.FT_MODE_MIXED) ft_eap_config2 = xmlrpc_security_types.WPAEAPConfig( server_ca_cert=site_eap_certs.ca_cert_2, server_cert=site_eap_certs.server_cert_2, server_key=site_eap_certs.server_private_key_2, client_ca_cert=site_eap_certs.ca_cert_2, client_cert=site_eap_certs.client_cert_2, client_key=site_eap_certs.client_private_key_2, wpa_mode=xmlrpc_security_types.WPAConfig.MODE_PURE_WPA2, ft_mode=xmlrpc_security_types.WPAConfig.FT_MODE_MIXED) host = hosts.create_host(machine) job.run_test('network_WiFi_RoamFT', tag=NAME.split('.')[1], host=host, raw_cmdline_args=args, additional_params=[ft_eap_config1, ft_eap_config2]) parallel_simple(run, machines)