diff options
-rwxr-xr-x | acts/tests/google/wifi/WifiAutoUpdateTest.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/acts/tests/google/wifi/WifiAutoUpdateTest.py b/acts/tests/google/wifi/WifiAutoUpdateTest.py index 8e20c81dd..4ce81d9bf 100755 --- a/acts/tests/google/wifi/WifiAutoUpdateTest.py +++ b/acts/tests/google/wifi/WifiAutoUpdateTest.py @@ -126,7 +126,18 @@ class WifiAutoUpdateTest(WifiBaseTest): self.wifi_hotspot = {"SSID": "hotspot_%s" % utils.rand_ascii_str(6), "password": "pass_%s" % utils.rand_ascii_str(6)} band = WIFI_CONFIG_APBAND_5G - if self.dut.build_info["build_id"].startswith("Q"): + if self.dut.build_info["build_id"].startswith("R"): + band = WifiEnums.WIFI_CONFIG_SOFTAP_BAND_5G + self.wifi_hotspot[WifiEnums.AP_BAND_KEY] = band + asserts.assert_true( + self.dut.droid.wifiSetWifiApConfiguration(self.wifi_hotspot), + "Failed to set WifiAp Configuration") + wifi_ap = self.dut.droid.wifiGetApConfiguration() + asserts.assert_true( + wifi_ap[WifiEnums.SSID_KEY] == self.wifi_hotspot[WifiEnums.SSID_KEY], + "Hotspot SSID doesn't match with expected SSID") + return + elif self.dut.build_info["build_id"].startswith("Q"): band = WifiEnums.WIFI_CONFIG_APBAND_5G_OLD self.wifi_hotspot[WifiEnums.AP_BAND_KEY] = band asserts.assert_true( |