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