autotest: Migrates network_WiFiRoaming/004SuspendTimeout to new method.
Replaces network_WiFiRoaming/004SuspendTimeout test with script and control
file in network_WiFi_RoamSuspendTimeout directory. New code conforms to test
infrastructure changes provided to address crbug.com/224443.
In this test, the DUT connects to the AP and goes to sleep. While the
DUT is asleep, the AP deauths the DUT. The test checks to see whether
the DUT reconnects after it wakes up.
BUG=chromium:263889
TEST=autotest
Change-Id: I7783c342fbe5d9fcd97d4b333996e70f58df55e4
Reviewed-on: https://chromium-review.googlesource.com/176010
Reviewed-by: Christopher Wiley <wiley@chromium.org>
Reviewed-by: Wade Guthrie <wdg@chromium.org>
Commit-Queue: Wade Guthrie <wdg@chromium.org>
Tested-by: Wade Guthrie <wdg@chromium.org>
diff --git a/server/site_linux_router.py b/server/site_linux_router.py
index 25fd942..cd30f40 100644
--- a/server/site_linux_router.py
+++ b/server/site_linux_router.py
@@ -7,6 +7,7 @@
import re
import string
+from autotest_lib.client.common_lib import base_utils
from autotest_lib.client.common_lib import error
from autotest_lib.server import site_linux_system
from autotest_lib.server.cros import wifi_test_utils
@@ -784,16 +785,29 @@
self.iw_runner.set_tx_power(interface, power)
- def deauth(self, params):
+ def deauth_client(self, client_mac):
"""Deauthenticates a client described in params.
- @param params dict containing a key 'client'.
+ @param client_mac string containing the mac address of the client to be
+ deauthenticated.
"""
self.router.run('%s -p%s deauthenticate %s' %
(self.cmd_hostapd_cli,
self.hostapd['conf']['ctrl_interface'],
- params['client']))
+ client_mac))
+
+
+ @base_utils.deprecated
+ def deauth(self, params):
+ """Deauthenticates a client described in params.
+
+ Deprecated: Call 'deauth_client', instead.
+
+ @param params dict containing a key 'client'.
+
+ """
+ self.deauth_client(params['client'])
def send_management_frame(self, frame_type, instance=0):