1 # Copyright (c) 2013 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 = 'pstew, wiley, quiche' 6 NAME = 'network_WiFi_Regulatory' 7 TIME = 'SHORT' 8 TEST_TYPE = 'Server' 9 ATTRIBUTES = 'suite:wifi_matfunc, suite:wifi_matfunc_bcm4371' 10 DEPENDENCIES = 'wificell' 11 12 DOC = """ 13 This test verifies that DUT will move off-channel if it is sent a 14 Spectrum Management action frame that contains a Channel Move 15 element. Such frames are sent on a DFS network to vacate the 16 channel if radar is detected. 17 """ 18 19 20 from autotest_lib.server.cros.network import hostap_config 21 22 23 def run(machine): 24 a_mode = hostap_config.HostapConfig.MODE_11A 25 configurations = [ 26 (hostap_config.HostapConfig( 27 channel=64, mode=a_mode, spectrum_mgmt_required=True), 36)] 28 host = hosts.create_host(machine) 29 job.run_test('network_WiFi_Regulatory', 30 host=host, 31 raw_cmdline_args=args, 32 additional_params=configurations) 33 34 35 parallel_simple(run, machines) 36