• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.mixedEAP'
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 EAP 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 import site_eap_certs
21from autotest_lib.client.common_lib.cros.network import xmlrpc_security_types
22
23def run(machine):
24    ft_eap_config = xmlrpc_security_types.WPAEAPConfig(
25        server_ca_cert=site_eap_certs.ca_cert_1,
26        server_cert=site_eap_certs.server_cert_1,
27        server_key=site_eap_certs.server_private_key_1,
28        client_ca_cert=site_eap_certs.ca_cert_1,
29        client_cert=site_eap_certs.client_cert_1,
30        client_key=site_eap_certs.client_private_key_1,
31        wpa_mode=xmlrpc_security_types.WPAConfig.MODE_PURE_WPA2,
32        ft_mode=xmlrpc_security_types.WPAConfig.FT_MODE_MIXED)
33    host = hosts.create_host(machine)
34    job.run_test('network_WiFi_RoamFT',
35                 tag=NAME.split('.')[1],
36                 host=host,
37                 raw_cmdline_args=args,
38                 additional_params=ft_eap_config)
39
40
41parallel_simple(run, machines)
42