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