• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_CSA'
7TIME = 'SHORT'
8TEST_TYPE = 'Server'
9ATTRIBUTES = ('suite:wifi_matfunc')
10DEPENDENCIES = 'wificell'
11
12DOC = """
13This test verifies that DUT will move off-channel if it is sent a
14Spectrum Management action frame that contains a Channel Move
15element.  Such frames are sent on a DFS network to vacate the
16channel if radar is detected.
17Note that not all clients support CSA, but they generally should at least try
18to disconnect from the AP.
19"""
20
21
22from autotest_lib.server.cros.network import hostap_config
23
24
25def run(machine):
26    a_mode = hostap_config.HostapConfig.MODE_11A
27    configurations = [
28        (hostap_config.HostapConfig(
29            channel=64, mode=a_mode, spectrum_mgmt_required=True), 36)]
30    host = hosts.create_host(machine)
31    job.run_test('network_WiFi_CSA',
32                 host=host,
33                 raw_cmdline_args=args,
34                 additional_params=configurations)
35
36
37parallel_simple(run, machines)
38