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