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' 13 14DOC = """ 15Tests the time taken to authenticate, associate, and get an IP. 16Also measures the speed of resuming a connection after a suspend 17""" 18 19 20from autotest_lib.client.common_lib.cros.network import xmlrpc_datatypes 21from autotest_lib.server.cros.network import hostap_config 22 23 24def run(machine): 25 channel = 36 26 n_caps = [hostap_config.HostapConfig.N_CAPABILITY_HT40] 27 mode = hostap_config.HostapConfig.MODE_11N_PURE 28 29 configurations = [hostap_config.HostapConfig( 30 channel=channel, 31 n_capabilities=n_caps, 32 mode=mode)] 33 job.run_test('network_WiFi_AssocConfigPerformance', 34 host=hosts.create_host(machine), 35 num_iterations=5, 36 suspend_duration=30, 37 raw_cmdline_args=args, 38 additional_params=configurations) 39 40 41parallel_simple(run, machines) 42