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 = 'arowa' 6NAME = 'network_WiFi_AttenuatedPerf.vht80_ch042' 7ATTRIBUTES = "suite:wifi_atten_perf" 8TIME = 'SHORT' 9TEST_TYPE = 'Server' 10DEPENDENCIES = 'wificell' 11PY_VERSION = 3 12 13DOC = """ 14This test uses netperf to measure the maximal receiving and transmitting 15throughput on a DUT with an open VHT80 802.11ac network across multiple 16attenuation levels. 17""" 18 19 20from autotest_lib.server.cros.network import hostap_config 21 22 23def run(machine): 24 host = hosts.create_host(machine) 25 n_caps = [hostap_config.HostapConfig.N_CAPABILITY_HT40_PLUS] 26 ac_caps = [hostap_config.HostapConfig.AC_CAPABILITY_SHORT_GI_80, 27 hostap_config.HostapConfig.AC_CAPABILITY_MAX_A_MPDU_LEN_EXP7] 28 ac_mode = hostap_config.HostapConfig.MODE_11AC_PURE 29 channel_width_80_mhz = hostap_config.HostapConfig.VHT_CHANNEL_WIDTH_80 30 ap_config = hostap_config.HostapConfig( 31 channel=44, 32 mode=ac_mode, 33 n_capabilities=n_caps, 34 vht_channel_width=channel_width_80_mhz, 35 vht_center_channel=42, 36 ac_capabilities=ac_caps) 37 attenuation_increment = 6 38 final_attenuation = 100 39 job.run_test('network_WiFi_AttenuatedPerf', tag=NAME.split('.')[1], 40 host=host, raw_cmdline_args=args, 41 additional_params=(ap_config, attenuation_increment, final_attenuation)) 42 43 44parallel_simple(run, machines) 45