• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2018 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 = 'pauletti'
6NAME = 'network_WiFi_SimpleConnect.wifi_check5VHT20'
7TIME = 'SHORT'
8TEST_TYPE = 'Server'
9ATTRIBUTES = ('suite:wifi_flaky', 'subsystem:wifi')
10DEPENDENCIES = 'wificell'
11
12DOC = """
13This test verifies that DUT can connect to an open 802.11ac network
14on channel 60 with a channel width of 20MHz.
15"""
16
17
18from autotest_lib.client.common_lib.cros.network import xmlrpc_datatypes
19from autotest_lib.server.cros.network import hostap_config
20
21
22def run(machine):
23    ac_mode = hostap_config.HostapConfig.MODE_11AC_PURE
24    # Because of the way the hostap width flag works, the VHT_CHANNEL_WIDTH_40
25    # is the correct configuration option for VHT20 and VHT40
26    channel_width = hostap_config.HostapConfig.VHT_CHANNEL_WIDTH_40
27    configurations = [(hostap_config.HostapConfig(
28                                  channel=60,
29                                  mode=ac_mode,
30                                  vht_channel_width=channel_width),
31                       xmlrpc_datatypes.AssociationParameters())]
32    host = hosts.create_host(machine)
33    job.run_test('network_WiFi_SimpleConnect',
34                 tag=NAME.split('.')[1],
35                 host=host,
36                 raw_cmdline_args=args,
37                 additional_params=configurations)
38
39
40parallel_simple(run, machines)
41