Fix agents disconnecting in SUSPENDED state.

Network state is not changed to disconnected when a networkagent
is disconnected and network state is SUSPENDED.

So the function requiresClat return true. Clat is not stoped.

Bug: 277682237
Test: atest FrameworksNetTests
(cherry picked from https://android-review.googlesource.com/q/commit:fd5d3d90e1da7411104902ddfe859ebd0e4a02fb)
Merged-In: I5edfcf64aca5d2d34325d722dd29fab41bcf2600
Change-Id: I5edfcf64aca5d2d34325d722dd29fab41bcf2600
This commit is contained in:
wangshengrjxtjcb
2023-05-09 09:51:06 +08:00
committed by Cherrypicker Worker
parent f8d29e401e
commit 9b5334dbad
3 changed files with 20 additions and 3 deletions

View File

@@ -17949,7 +17949,6 @@ public class ConnectivityServiceTest {
mCellAgent.expectDisconnected();
waitForIdle();
// TODO (aosp/2583410): update following check to verifyClatdStop
verifyNeverClatdStop(null /* inOrder */, MOBILE_IFNAME);
verifyClatdStop(null /* inOrder */, MOBILE_IFNAME);
}
}