diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2018-07-18 03:09:15 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2018-07-18 03:09:15 +0000 |
commit | f876c4925ced6d413838fc1e0ee1b048c4d23d4a (patch) | |
tree | 718be119c7f97d4119bca7fd622483d8357628fc | |
parent | 43bf843da68de889f1d5075995c4d20d50597972 (diff) | |
parent | d265b2eda336fa3e2162592033aac9f630b0f32a (diff) | |
download | platform_tools_test_connectivity-pie-dr1-release.tar.gz platform_tools_test_connectivity-pie-dr1-release.tar.bz2 platform_tools_test_connectivity-pie-dr1-release.zip |
Snap for 4899218 from d265b2eda336fa3e2162592033aac9f630b0f32a to pi-dr1-releaseandroid-9.0.0_r12android-9.0.0_r11pie-dr1-release
Change-Id: I2e05b9d15067669f9e70d78578cf80a32a26ba7c
-rwxr-xr-x | acts/framework/acts/controllers/access_point.py | 1 | ||||
-rwxr-xr-x | acts/framework/acts/test_utils/wifi/WifiBaseTest.py | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/acts/framework/acts/controllers/access_point.py b/acts/framework/acts/controllers/access_point.py index 70a81bb26e..313fcf999d 100755 --- a/acts/framework/acts/controllers/access_point.py +++ b/acts/framework/acts/controllers/access_point.py @@ -26,6 +26,7 @@ from acts.controllers.ap_lib import dhcp_config from acts.controllers.ap_lib import dhcp_server from acts.controllers.ap_lib import hostapd from acts.controllers.ap_lib import hostapd_config +from acts.controllers.ap_lib import hostapd_constants from acts.controllers.utils_lib.commands import ip from acts.controllers.utils_lib.commands import route from acts.controllers.utils_lib.commands import shell diff --git a/acts/framework/acts/test_utils/wifi/WifiBaseTest.py b/acts/framework/acts/test_utils/wifi/WifiBaseTest.py index fe72deddb7..4b6dc8c50e 100755 --- a/acts/framework/acts/test_utils/wifi/WifiBaseTest.py +++ b/acts/framework/acts/test_utils/wifi/WifiBaseTest.py @@ -261,8 +261,10 @@ class WifiBaseTest(BaseTestClass): config_count = 1 count = 0 - if mirror_ap and ap_count == 1: - raise ValueError("ap_count cannot be 1 if mirror_ap is True.") + # For example, the NetworkSelector tests use 2 APs and require that + # both APs are not mirrored. + if not mirror_ap and ap_count == 1: + raise ValueError("ap_count cannot be 1 if mirror_ap is False.") if not mirror_ap: config_count = ap_count |