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 5 AUTHOR = 'matthewmwang' 6 TIME = 'SHORT' 7 NAME = 'network_WiFi_RoamFT.PSK' 8 TEST_TYPE = 'Server' 9 ATTRIBUTES = ('suite:wifi_matfunc') 10 DEPENDENCIES = 'wificell' 11 12 DOC = """ 13 This test attempts to verify that we can roam between two APs using the FT-PSK 14 key management suite (i.e. WPA-PSK with Fast BSS Transition) in full view of the 15 DUT. Fast BSS Transition is part of the 802.11r protocol, which describes a 16 procedure for fast roaming from one AP to another within an SSID. 17 """ 18 19 from autotest_lib.client.common_lib.cros.network import xmlrpc_security_types 20 21 def 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 35 parallel_simple(run, machines) 36