diff options
author | Roshan Pius <rpius@google.com> | 2020-04-23 13:57:41 -0700 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2020-04-23 14:37:57 -0700 |
commit | d43b5f2f3e1bc80c86d32bf976ece572e81e2f95 (patch) | |
tree | 0bc97b79256859a470df3898e63660385c13ccb4 /service | |
parent | e0e4592a0efe0170ad5a5e162253306f7d0f21fc (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.java | 2 |
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; } |