diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2020-07-14 01:30:38 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-07-14 01:30:38 +0000 |
commit | 0fc9df9e0a35d3cc39fb75a54eadc4e522974e0e (patch) | |
tree | f35ba8abbf3d0f1f2851ef7af776cef01adc1fbf | |
parent | b317bf4d154c363ee369731d741accc6c4f93883 (diff) | |
parent | 163a9ed03824d62b8f6b157bab22113f5ccf1d8f (diff) | |
download | platform_tools_test_connectivity-0fc9df9e0a35d3cc39fb75a54eadc4e522974e0e.tar.gz platform_tools_test_connectivity-0fc9df9e0a35d3cc39fb75a54eadc4e522974e0e.tar.bz2 platform_tools_test_connectivity-0fc9df9e0a35d3cc39fb75a54eadc4e522974e0e.zip |
Snap for 6676900 from 585ed8217f1036fff15e1dde1a3b94250b1a06da to rvc-release am: 163a9ed038
Original change: https://googleplex-android-review.googlesource.com/c/platform/tools/test/connectivity/+/12144277
Change-Id: Ifc20955f4f3db16d34b9694da643474bf30582db
-rwxr-xr-x | acts/framework/acts/test_utils/wifi/wifi_test_utils.py | 8 | ||||
-rw-r--r-- | acts/tests/google/wifi/WifiRoamingTest.py | 9 |
2 files changed, 10 insertions, 7 deletions
diff --git a/acts/framework/acts/test_utils/wifi/wifi_test_utils.py b/acts/framework/acts/test_utils/wifi/wifi_test_utils.py index f252bf9cb6..167daf6cd8 100755 --- a/acts/framework/acts/test_utils/wifi/wifi_test_utils.py +++ b/acts/framework/acts/test_utils/wifi/wifi_test_utils.py @@ -54,12 +54,12 @@ ROAMING_ATTN = { "AP1_on_AP2_off": [ 0, 0, - 60, - 60 + 95, + 95 ], "AP1_off_AP2_on": [ - 60, - 60, + 95, + 95, 0, 0 ], diff --git a/acts/tests/google/wifi/WifiRoamingTest.py b/acts/tests/google/wifi/WifiRoamingTest.py index d7bec90f0e..b0f1a71f7f 100644 --- a/acts/tests/google/wifi/WifiRoamingTest.py +++ b/acts/tests/google/wifi/WifiRoamingTest.py @@ -62,6 +62,7 @@ class WifiRoamingTest(WifiBaseTest): len(self.open_network) > 1, "Need at least two open networks for roaming") + self.configure_packet_capture() def teardown_class(self): @@ -101,10 +102,12 @@ class WifiRoamingTest(WifiBaseTest): 5. Validate connection information and ping. """ wutils.set_attns(self.attenuators, "AP1_on_AP2_off") - wutils.connect_to_wifi_network(self.dut, AP1_network) + wifi_config = AP1_network.copy() + wifi_config.pop("bssid") + wutils.connect_to_wifi_network(self.dut, wifi_config) self.log.info("Roaming from %s to %s", AP1_network, AP2_network) - self.trigger_roaming_and_verify_attenuation(AP1_network) - self.validate_roaming(AP2_network) + wutils.trigger_roaming_and_validate( + self.dut, self.attenuators, "AP1_off_AP2_on", AP2_network) def get_rssi(self, pcap_file, expected_bssid): """Get signal strength of the wifi network attenuated. |