diff options
-rw-r--r-- | service/java/com/android/server/wifi/WifiNetworkHistory.java | 6 | ||||
-rw-r--r-- | service/java/com/android/server/wifi/WifiStateMachine.java | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiNetworkHistory.java b/service/java/com/android/server/wifi/WifiNetworkHistory.java index cd1fe8b21..380b768c9 100644 --- a/service/java/com/android/server/wifi/WifiNetworkHistory.java +++ b/service/java/com/android/server/wifi/WifiNetworkHistory.java @@ -87,6 +87,7 @@ public class WifiNetworkHistory { private static final String SCORER_OVERRIDE_AND_SWITCH_KEY = "SCORER_OVERRIDE_AND_SWITCH"; private static final String VALIDATED_INTERNET_ACCESS_KEY = "VALIDATED_INTERNET_ACCESS"; private static final String NO_INTERNET_ACCESS_REPORTS_KEY = "NO_INTERNET_ACCESS_REPORTS"; + private static final String NO_INTERNET_ACCESS_EXPECTED_KEY = "NO_INTERNET_ACCESS_EXPECTED"; private static final String EPHEMERAL_KEY = "EPHEMERAL"; private static final String USE_EXTERNAL_SCORES_KEY = "USE_EXTERNAL_SCORES"; private static final String METERED_HINT_KEY = "METERED_HINT"; @@ -208,6 +209,8 @@ public class WifiNetworkHistory { + Integer.toString(config.numNoInternetAccessReports) + NL); out.writeUTF(VALIDATED_INTERNET_ACCESS_KEY + SEPARATOR + Boolean.toString(config.validatedInternetAccess) + NL); + out.writeUTF(NO_INTERNET_ACCESS_EXPECTED_KEY + SEPARATOR + + Boolean.toString(config.noInternetAccessExpected) + NL); out.writeUTF(EPHEMERAL_KEY + SEPARATOR + Boolean.toString(config.ephemeral) + NL); out.writeUTF(METERED_HINT_KEY + SEPARATOR @@ -412,6 +415,9 @@ public class WifiNetworkHistory { case VALIDATED_INTERNET_ACCESS_KEY: config.validatedInternetAccess = Boolean.parseBoolean(value); break; + case NO_INTERNET_ACCESS_EXPECTED_KEY: + config.noInternetAccessExpected = Boolean.parseBoolean(value); + break; case CREATION_TIME_KEY: config.creationTime = value; break; diff --git a/service/java/com/android/server/wifi/WifiStateMachine.java b/service/java/com/android/server/wifi/WifiStateMachine.java index 6a28c0c83..dc96096fc 100644 --- a/service/java/com/android/server/wifi/WifiStateMachine.java +++ b/service/java/com/android/server/wifi/WifiStateMachine.java @@ -7099,6 +7099,7 @@ public class WifiStateMachine extends StateMachine implements WifiNative.WifiRss config = getCurrentWifiConfiguration(); if (config != null) { config.noInternetAccessExpected = accept; + mWifiConfigManager.writeKnownNetworkHistory(); } return HANDLED; case CMD_TEST_NETWORK_DISCONNECT: |