1# Copyright 2019 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 = 'briannorris' 6NAME = 'network_WiFi_APSupportedRates.11ac' 7TIME = 'SHORT' 8TEST_TYPE = 'Server' 9# TODO(crbug.com/953702): move to wifi_matfunc once stable. 10ATTRIBUTES = ('suite:wifi_flaky') 11DEPENDENCIES = 'wificell' 12 13DOC = """ 14Verify that we respond sanely to APs that disable certain legacy bitrates. 15""" 16 17from autotest_lib.server.cros.network import hostap_config 18 19def run(machine): 20 ap_config = hostap_config.HostapConfig( 21 channel=157, mode=hostap_config.HostapConfig.MODE_11AC_MIXED, 22 vht_center_channel=155, 23 vht_channel_width=hostap_config.HostapConfig.VHT_CHANNEL_WIDTH_80, 24 supported_rates=[36, 48, 54], 25 basic_rates=[36], 26 n_capabilities=[hostap_config.HostapConfig.N_CAPABILITY_HT40_PLUS]) 27 28 job.run_test('network_WiFi_APSupportedRates', 29 host=hosts.create_host(machine), 30 raw_cmdline_args=args, 31 additional_params=ap_config) 32 33 34parallel_simple(run, machines) 35