1# Copyright 2021 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 = 'bfreed' 6NAME = 'network_WiFi_BluetoothStreamPerf.11ac' 7ATTRIBUTES = 'suite:bluetooth_wifi_coex' 8# This test is flaky but adding to 'suite:bluetooth_flaky' will use up 9# a lot of lab capacity 10TIME = 'MEDIUM' 11TEST_TYPE = 'Server' 12DEPENDENCIES = 'wificell, working_bluetooth_btpeer:1' 13PY_VERSION = 3 14 15DOC = """ 16This test uses netperf to measure the maximal receiving and transmitting 17throughput on a DUT with an open 802.11ac network while operating bluetooth. 18""" 19 20 21from autotest_lib.server import utils 22from autotest_lib.server.cros.network import hostap_config 23 24args_dict = utils.args_to_dict(args) 25 26def run(machine): 27 host = hosts.create_host(machine) 28 29 n_caps = [hostap_config.HostapConfig.N_CAPABILITY_HT40_PLUS] 30 ac_caps = [hostap_config.HostapConfig.AC_CAPABILITY_SHORT_GI_80] 31 ac_mode = hostap_config.HostapConfig.MODE_11AC_MIXED 32 channel_width_80_mhz = hostap_config.HostapConfig.VHT_CHANNEL_WIDTH_80 33 configs = [hostap_config.HostapConfig( 34 channel=channel, 35 mode=ac_mode, 36 n_capabilities=n_caps, 37 vht_channel_width=channel_width_80_mhz, 38 vht_center_channel=vht_center_channel, 39 ac_capabilities=ac_caps) 40 for channel, vht_center_channel in [(44, 42), (157, 155)]] 41 42 job.run_test('network_WiFi_BluetoothStreamPerf', tag=NAME.split('.')[1], 43 host=host, raw_cmdline_args=args, args_dict=args_dict, 44 additional_params=configs, test_name='coex_test') 45 46parallel_simple(run, machines) 47