1 # Copyright 2015 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 5 from autotest_lib.server import utils 6 7 AUTHOR = 'krisr, tienchang, bmahadev' 8 NAME = 'network_WiFi_SuspendStress.11a' 9 TIME = 'MEDIUM' 10 TEST_TYPE = 'Server' 11 DEPENDENCIES = 'wificell' 12 ATTRIBUTES = ('suite:wifi_matfunc, suite:wifi_matfunc_bcm4371,' 13 'suite:wifi_matfunc_noservo') 14 15 DOC = """ 16 This test uses powerd_dbus to suspend and resume and checks that the 17 wifi adapter is brought back up and connects to a 802.11a network on channels 18 48, 64. 19 """ 20 21 from autotest_lib.client.common_lib.cros.network import xmlrpc_datatypes 22 from autotest_lib.server.cros.network import hostap_config 23 24 def run(machine): 25 host = hosts.create_host(machine) 26 a_mode = hostap_config.HostapConfig.MODE_11A 27 configurations = [(hostap_config.HostapConfig(channel=48, mode=a_mode), 28 xmlrpc_datatypes.AssociationParameters()), 29 (hostap_config.HostapConfig(channel=64, mode=a_mode), 30 xmlrpc_datatypes.AssociationParameters())] 31 32 job.run_test('network_WiFi_SuspendStress', 33 host=host, 34 tag=NAME.split('.')[1], 35 suspends=5, 36 raw_cmdline_args=args, 37 additional_params=configurations) 38 39 parallel_simple(run, machines) 40