aboutsummaryrefslogtreecommitdiff
path: root/server/cros/network/wifi_cell_test_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'server/cros/network/wifi_cell_test_base.py')
-rw-r--r--server/cros/network/wifi_cell_test_base.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/server/cros/network/wifi_cell_test_base.py b/server/cros/network/wifi_cell_test_base.py
index 8e8233fd6d..5b2d2c1fcd 100644
--- a/server/cros/network/wifi_cell_test_base.py
+++ b/server/cros/network/wifi_cell_test_base.py
@@ -1,3 +1,4 @@
+# Lint as: python2, python3
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -71,6 +72,7 @@ class WiFiCellTestBase(test.test):
self.debugdir)
self._wifi_context.setup(pcap_as_router=pcap_as_router)
+ self._verify_additional_setup_requirements()
self.parse_additional_arguments(cmdline_args, additional_params)
msg = '======= WiFi autotest setup complete. Starting test... ======='
@@ -96,6 +98,13 @@ class WiFiCellTestBase(test.test):
"""
self.context.configure(ap_config)
ap_ssid = self.context.router.get_ssid()
- assoc_params = xmlrpc_datatypes.AssociationParameters(ssid=ap_ssid)
+ assoc_params = xmlrpc_datatypes.AssociationParameters(
+ ssid=ap_ssid, security_config=ap_config.security_config)
self.context.assert_connect_wifi(assoc_params)
return ap_ssid
+
+ def _verify_additional_setup_requirements(self):
+ """Subclasses can override this method to do any additional checking
+ of the physical testing setup that they require.
+ """
+ pass