summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2020-05-02 02:24:40 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-05-02 02:24:40 +0000
commit2eeb28d2fe35854db0ca672443314712cb65cfd1 (patch)
treedcb9d2f3c64873b8a176ac854ab7bade80fdbc10 /service
parent207079994b7e0ba2183161194a9d4edda41cc62c (diff)
parent564f3f8861c44011f73de533cc6c4372fed49e90 (diff)
Merge "Remove auto-join check PasspointNetworkNominateHelper" into rvc-dev
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/SavedNetworkNominator.java3
-rw-r--r--service/java/com/android/server/wifi/hotspot2/PasspointNetworkNominateHelper.java3
2 files changed, 3 insertions, 3 deletions
diff --git a/service/java/com/android/server/wifi/SavedNetworkNominator.java b/service/java/com/android/server/wifi/SavedNetworkNominator.java
index 6480237ef..3c94bed9d 100644
--- a/service/java/com/android/server/wifi/SavedNetworkNominator.java
+++ b/service/java/com/android/server/wifi/SavedNetworkNominator.java
@@ -177,6 +177,9 @@ public class SavedNetworkNominator implements WifiNetworkSelector.NetworkNominat
mPasspointNetworkNominateHelper.getPasspointNetworkCandidates(scanDetails, false);
for (Pair<ScanDetail, WifiConfiguration> candidate : candidates) {
WifiConfiguration config = candidate.second;
+ if (!config.allowAutojoin) {
+ continue;
+ }
if (isNetworkSimBasedCredential(config) && !isSimBasedNetworkAbleToAutoJoin(config)) {
continue;
}
diff --git a/service/java/com/android/server/wifi/hotspot2/PasspointNetworkNominateHelper.java b/service/java/com/android/server/wifi/hotspot2/PasspointNetworkNominateHelper.java
index 0a5da1f7c..e1491aa7a 100644
--- a/service/java/com/android/server/wifi/hotspot2/PasspointNetworkNominateHelper.java
+++ b/service/java/com/android/server/wifi/hotspot2/PasspointNetworkNominateHelper.java
@@ -146,9 +146,6 @@ public class PasspointNetworkNominateHelper {
if (matchedProvider.first.isFromSuggestion() != isFromSuggestion) {
continue;
}
- if (!matchedProvider.first.isAutojoinEnabled()) {
- continue;
- }
List<PasspointNetworkCandidate> candidates = candidatesPerProvider
.computeIfAbsent(matchedProvider.first, k -> new ArrayList<>());
candidates.add(new PasspointNetworkCandidate(matchedProvider.first,