1# Copyright (c) 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 = 'zmarcus' 6NAME = 'network_WiFi_AssocConfigPerformance' 7TIME = 'SHORT' 8TEST_TYPE = 'Server' 9# TODO(crbug.com/855884): resolve caching effects to get consistent performance 10# metrics, and move this back to suite:wifi_perf. 11ATTRIBUTES = ('suite:wifi_flaky') 12DEPENDENCIES = 'wificell' 13PY_VERSION = 3 14 15DOC = """ 16Tests the time taken to authenticate, associate, and get an IP. 17Also measures the speed of resuming a connection after a suspend 18""" 19 20 21from autotest_lib.client.common_lib.cros.network import xmlrpc_datatypes 22from autotest_lib.server.cros.network import hostap_config 23 24 25def run(machine): 26 channel = 36 27 n_caps = [hostap_config.HostapConfig.N_CAPABILITY_HT40] 28 mode = hostap_config.HostapConfig.MODE_11N_PURE 29 30 configurations = [hostap_config.HostapConfig( 31 channel=channel, 32 n_capabilities=n_caps, 33 mode=mode)] 34 job.run_test('network_WiFi_AssocConfigPerformance', 35 host=hosts.create_host(machine), 36 num_iterations=5, 37 suspend_duration=30, 38 raw_cmdline_args=args, 39 additional_params=configurations) 40 41 42parallel_simple(run, machines) 43