summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChalard Jean <jchalard@google.com>2020-05-11 09:42:03 +0900
committerChalard Jean <jchalard@google.com>2020-05-18 04:19:00 +0000
commit84d1b2fe7e867f680051df76663d8c57a5b2bd5a (patch)
tree49610e4473c6a23120d349a564e1ad6c9291b50f
parent7355f2ab064769d7c38a77efdda6dbfa655cd3d6 (diff)
Add the NOT_SUSPENDED capability to all WiFi networks.
There is a stopgap hack in ConnectivityService doing this automatically, but individual agents should be doing this themselves. Bug: 150570873 Test: FrameworksWifiTests Change-Id: I64a7d6e590ca01da3317092049e037bbb2c09222 Merged-In: I302161230292366ac46d3b134d2e80f6d48a9259
-rw-r--r--service/java/com/android/server/wifi/ClientModeImpl.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/ClientModeImpl.java b/service/java/com/android/server/wifi/ClientModeImpl.java
index 71a8cc613..e36d379c4 100644
--- a/service/java/com/android/server/wifi/ClientModeImpl.java
+++ b/service/java/com/android/server/wifi/ClientModeImpl.java
@@ -820,6 +820,7 @@ public class ClientModeImpl extends StateMachine {
.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING)
.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_CONGESTED)
.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)
+ .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED)
// TODO - needs to be a bit more dynamic
.setLinkUpstreamBandwidthKbps(1024 * 1024)
.setLinkDownstreamBandwidthKbps(1024 * 1024)