[WifiSoftApTest] WPA3 softap test cases
Bug: 183716581
Fixes: 183716581
Test: Verified the changes
Change-Id: Id3bb21e4d5ad1e125e6a6b5d84336a06642b1af7
diff --git a/acts_tests/acts_contrib/test_utils/wifi/wifi_test_utils.py b/acts_tests/acts_contrib/test_utils/wifi/wifi_test_utils.py
index f421695..6b5becc 100755
--- a/acts_tests/acts_contrib/test_utils/wifi/wifi_test_utils.py
+++ b/acts_tests/acts_contrib/test_utils/wifi/wifi_test_utils.py
@@ -951,7 +951,8 @@
return event['data']
-def start_wifi_tethering(ad, ssid, password, band=None, hidden=None):
+def start_wifi_tethering(ad, ssid, password, band=None, hidden=None,
+ security=None):
"""Starts wifi tethering on an android_device.
Args:
@@ -961,6 +962,7 @@
band: The band the soft AP should be set on. It should be either
WifiEnums.WIFI_CONFIG_APBAND_2G or WifiEnums.WIFI_CONFIG_APBAND_5G.
hidden: boolean to indicate if the AP needs to be hidden or not.
+ security: security type of softap.
Returns:
No return value. Error checks in this function will raise test failure signals
@@ -972,6 +974,8 @@
config[WifiEnums.AP_BAND_KEY] = band
if hidden:
config[WifiEnums.HIDDEN_KEY] = hidden
+ if security:
+ config[WifiEnums.SECURITY] = security
asserts.assert_true(ad.droid.wifiSetWifiApConfiguration(config),
"Failed to update WifiAp Configuration")
ad.droid.wifiStartTrackingTetherStateChange()