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.11n' 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.11n 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 all_caps = ([hostap_config.HostapConfig.N_CAPABILITY_HT20], 30 [hostap_config.HostapConfig.N_CAPABILITY_HT40]) 31 mode = hostap_config.HostapConfig.MODE_11N_PURE 32 configs = [hostap_config.HostapConfig(n_capabilities=caps, 33 channel=channel, mode=mode) 34 for caps in all_caps 35 for channel in (1, 157)] 36 37 job.run_test('network_WiFi_BluetoothStreamPerf', tag=NAME.split('.')[1], 38 host=host, raw_cmdline_args=args, args_dict=args_dict, 39 additional_params=configs, test_name='coex_test') 40 41parallel_simple(run, machines) 42