• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2019 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 = 'pauletti, kirtika'
6NAME = 'network_WiFi_VisibleScan.5VHT80'
7TIME = 'SHORT'
8TEST_TYPE = 'Server'
9ATTRIBUTES = ''
10DEPENDENCIES = 'wificell'
11
12DOC = """
13This test scans for networks, with a shill profile that does not
14contain any hidden networks. The test verifies that 802.11 probe
15frames are seen over-the-air, and that the probe frames specify
16a broadcast scan. This test has the AP use an 80 MHz channel.
17
18"""
19
20from autotest_lib.server.cros.network import hostap_config
21
22
23def run(machine):
24    n_caps = [hostap_config.HostapConfig.N_CAPABILITY_HT40_PLUS]
25    ac_caps = [hostap_config.HostapConfig.AC_CAPABILITY_SHORT_GI_80]
26    ac_mode = hostap_config.HostapConfig.MODE_11AC_PURE
27    channel_width_80_mhz = hostap_config.HostapConfig.VHT_CHANNEL_WIDTH_80
28    configurations = [hostap_config.HostapConfig(
29                                  channel=149,
30                                  mode=ac_mode,
31                                  n_capabilities=n_caps,
32                                  vht_channel_width=channel_width_80_mhz,
33                                  vht_center_channel=155,
34                                  ac_capabilities=ac_caps)]
35    host = hosts.create_host(machine)
36    job.run_test('network_WiFi_VisibleScan',
37                 tag=NAME.split('.')[1],
38                 host=host,
39                 raw_cmdline_args=args,
40                 additional_params=configurations)
41
42
43parallel_simple(run, machines)
44