summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2020-04-23 13:57:41 -0700
committerRoshan Pius <rpius@google.com>2020-04-23 14:37:57 -0700
commitd43b5f2f3e1bc80c86d32bf976ece572e81e2f95 (patch)
tree0bc97b79256859a470df3898e63660385c13ccb4 /service
parente0e4592a0efe0170ad5a5e162253306f7d0f21fc (diff)
WifiNetworkSelector: Fix isFromCarrierOrPrivilegedApp()
Bug: 154854542 Test: atest com.android.server.wifi Change-Id: Ic04665101c939257c65e76cdec5dc57de3cd2575
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiNetworkSelector.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/WifiNetworkSelector.java b/service/java/com/android/server/wifi/WifiNetworkSelector.java
index 20544282f..da583df65 100644
--- a/service/java/com/android/server/wifi/WifiNetworkSelector.java
+++ b/service/java/com/android/server/wifi/WifiNetworkSelector.java
@@ -1047,7 +1047,7 @@ public class WifiNetworkSelector {
private static boolean isFromCarrierOrPrivilegedApp(WifiConfiguration config) {
if (config.fromWifiNetworkSuggestion
- && config.carrierId == TelephonyManager.UNKNOWN_CARRIER_ID) {
+ && config.carrierId != TelephonyManager.UNKNOWN_CARRIER_ID) {
// Privileged carrier suggestion
return true;
}