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_check5VHT40' 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 120 with a channel width of 40MHz. 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 n_caps = [hostap_config.HostapConfig.N_CAPABILITY_HT40] 24 ac_mode = hostap_config.HostapConfig.MODE_11AC_PURE 25 channel_width = hostap_config.HostapConfig.VHT_CHANNEL_WIDTH_40 26 configurations = [(hostap_config.HostapConfig( 27 channel=120, 28 mode=ac_mode, 29 n_capabilities=n_caps, 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