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 5 AUTHOR = 'kirtika' 6 NAME = 'network_WiFi_BgscanBackoff.5760_noise_check' 7 TIME = 'SHORT' 8 TEST_TYPE = 'Server' 9 ATTRIBUTES = ('suite:wifi_matfunc') 10 DEPENDENCIES = 'wificell' 11 12 DOC = """ 13 This test case verifies that bgscan aborts and/or backs off when 14 there is consistent outgoing traffic. This is a fork of the legacy test 15 that runs the test on channels 1 and 153 to serve two purposes: 16 (a) provide more 5 GHz coverage. 17 (b) help (a wee bit) to catch noise concerns around 5760 MHz as seen on 18 certain Intel SoCs. 19 This test can be compared with the '.wifi_bgscan_backoff' variant, to see 20 whether channel 153 behaves worse than other 5GHz channels. 21 """ 22 23 from autotest_lib.server.cros.network import hostap_config 24 25 def run(machine): 26 host = hosts.create_host(machine) 27 caps = [hostap_config.HostapConfig.N_CAPABILITY_HT40] 28 mode = hostap_config.HostapConfig.MODE_11N_MIXED 29 config_first_ap = (hostap_config.HostapConfig(channel=1, 30 mode=mode, n_capabilities=caps)) 31 config_second_ap = (hostap_config.HostapConfig(channel=153, 32 mode=mode, n_capabilities=caps)) 33 params = [config_first_ap, config_second_ap] 34 job.run_test('network_WiFi_BgscanBackoff', 35 host=host, 36 raw_cmdline_args=args, 37 additional_params=params) 38 39 parallel_simple(run, machines) 40