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 5from autotest_lib.server import utils 6 7AUTHOR = 'krisr, tienchang, bmahadev' 8NAME = 'network_WiFi_SuspendStress.11a' 9TIME = 'MEDIUM' 10TEST_TYPE = 'Server' 11DEPENDENCIES = 'wificell' 12ATTRIBUTES = ('suite:wifi_matfunc, suite:wifi_matfunc_bcm4371,' 13 'suite:wifi_matfunc_noservo') 14 15DOC = """ 16This test uses powerd_dbus to suspend and resume and checks that the 17wifi adapter is brought back up and connects to a 802.11a network on channels 1848, 64. 19""" 20 21from autotest_lib.client.common_lib.cros.network import xmlrpc_datatypes 22from autotest_lib.server.cros.network import hostap_config 23 24def 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 39parallel_simple(run, machines) 40