1# Copyright 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 5AUTHOR = 'matthewmwang' 6TIME = 'SHORT' 7NAME = 'network_WiFi_RoamFT.mixedPSK' 8TEST_TYPE = 'Server' 9ATTRIBUTES = ('suite:wifi_matfunc') 10DEPENDENCIES = 'wificell' 11 12DOC = """ 13This test attempts to verify that we can connect to and roam to and from APs 14that support FT mixed mode for PSK in full view of the DUT. This ensures that 15devices that don't support FT are still compatible with APs that do. Fast BSS 16Transition is part of the 802.11r protocol, which describes a procedure for fast 17roaming from one AP to another within an SSID. 18""" 19 20from autotest_lib.client.common_lib.cros.network import xmlrpc_security_types 21 22def run(machine): 23 ft_psk_config = xmlrpc_security_types.WPAConfig( 24 psk='chromeos', 25 wpa_mode=xmlrpc_security_types.WPAConfig.MODE_PURE_WPA2, 26 wpa2_ciphers=[xmlrpc_security_types.WPAConfig.CIPHER_CCMP], 27 ft_mode=xmlrpc_security_types.WPAConfig.FT_MODE_MIXED) 28 host = hosts.create_host(machine) 29 job.run_test('network_WiFi_RoamFT', 30 tag=NAME.split('.')[1], 31 host=host, 32 raw_cmdline_args=args, 33 additional_params=ft_psk_config) 34 35 36parallel_simple(run, machines) 37