summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2018-05-09 02:05:11 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-05-09 02:05:11 +0000
commit76defeec19f5f0155a657bedc7590edd8c455d1d (patch)
tree1ec816e105f80a9ab41bc6f6aea94d98a4bae2c9 /service
parent43b4bb291800401b67daf50156f8d04c64569c21 (diff)
parentee0920fb68d2f4447936301ce3192c345224e8e7 (diff)
Merge "WifiNetworkSelector: Networks with no internet should not be sufficient" into pi-dev
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiNetworkSelector.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiNetworkSelector.java b/service/java/com/android/server/wifi/WifiNetworkSelector.java
index 97ef221e7..883ba9301 100644
--- a/service/java/com/android/server/wifi/WifiNetworkSelector.java
+++ b/service/java/com/android/server/wifi/WifiNetworkSelector.java
@@ -179,6 +179,12 @@ public class WifiNetworkSelector {
return false;
}
+ // Network with no internet access reports is not qualified.
+ if (network.numNoInternetAccessReports > 0 && !network.noInternetAccessExpected) {
+ localLog("Current network has [" + network.numNoInternetAccessReports
+ + "] no-internet access reports.");
+ return false;
+ }
return true;
}