[CTS] Restart wifi before disabling always-on scanning
disabling scanning and then restarting wifi causes a race that results
in incorrect worksource being assigned to the entity that starts wifi
due to the inability to figure out when the disable always-on scanning
actually completed.
So reverse the order instead to prevent the race from happening.
Bug: 322134292
Test: atest WifiManagerTest#testStartLocalOnlyHotspotSingleRequestByApps
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:5838e73b46870d00290bb4b49b5a2127e4ece3ce)
Merged-In: Ib16cf29031a3043a96b8e1d47f0de7e4f35e8a04
Change-Id: Ib16cf29031a3043a96b8e1d47f0de7e4f35e8a04
NOTE FOR REVIEWERS - errors occurred while applying the patch.
PLEASE REVIEW CAREFULLY.
Errors:
Error applying patch in tests/tests/wifi/src/android/net/wifi/cts/WifiManagerTest.java, hunk HunkHeader[1214,19->1214,19]: Hunk cannot be applied
Original patch:
From 5838e73b46870d00290bb4b49b5a2127e4ece3ce Mon Sep 17 00:00:00 2001
From: Oscar Shu <xshu@google.com>
Date: Thu, 11 Apr 2024 00:36:03 +0000
Subject: [PATCH] [CTS] Restart wifi before disabling always-on scanning
disabling scanning and then restarting wifi causes a race that results
in incorrect worksource being assigned to the entity that starts wifi
due to the inability to figure out when the disable always-on scanning
actually completed.
So reverse the order instead to prevent the race from happening.
Bug: 322134292
Test: atest WifiManagerTest#testStartLocalOnlyHotspotSingleRequestByApps
Change-Id: Ib16cf29031a3043a96b8e1d47f0de7e4f35e8a04
---
1 file changed