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' 11 12DOC = """ 13This test case verifies that bgscan aborts and/or backs off when 14there is consistent outgoing traffic. This is a fork of the legacy test 15that 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 18certain Intel SoCs. 19This test can be compared with the '.wifi_bgscan_backoff' variant, to see 20whether channel 153 behaves worse than other 5GHz channels. 21""" 22 23from autotest_lib.server.cros.network import hostap_config 24 25def 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 39parallel_simple(run, machines) 40