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.PSK' 8TEST_TYPE = 'Server' 9ATTRIBUTES = ('suite:wifi_matfunc') 10DEPENDENCIES = 'wificell' 11 12DOC = """ 13This test attempts to verify that we can roam between two APs using the FT-PSK 14key management suite (i.e. WPA-PSK with Fast BSS Transition) in full view of the 15DUT. Fast BSS Transition is part of the 802.11r protocol, which describes a 16procedure for fast roaming from one AP to another within an SSID. 17""" 18 19from autotest_lib.client.common_lib.cros.network import xmlrpc_security_types 20 21def run(machine): 22 ft_psk_config = xmlrpc_security_types.WPAConfig( 23 psk='chromeos', 24 wpa_mode=xmlrpc_security_types.WPAConfig.MODE_PURE_WPA2, 25 wpa2_ciphers=[xmlrpc_security_types.WPAConfig.CIPHER_CCMP], 26 ft_mode=xmlrpc_security_types.WPAConfig.FT_MODE_PURE) 27 host = hosts.create_host(machine) 28 job.run_test('network_WiFi_RoamFT', 29 tag=NAME.split('.')[1], 30 host=host, 31 raw_cmdline_args=args, 32 additional_params=ft_psk_config) 33 34 35parallel_simple(run, machines) 36