summaryrefslogtreecommitdiffstats
path: root/service/java/com/android/server/wifi/WifiNetworkFactory.java
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2019-03-07 10:14:51 -0800
committerRoshan Pius <rpius@google.com>2019-03-14 07:47:44 -0700
commit0cd22728c628e51e8f259f8404a97dec49804424 (patch)
tree50d7abd4a1f2e2288f022d0f09e29b0783fbe855 /service/java/com/android/server/wifi/WifiNetworkFactory.java
parentd03677ad20ec1d521f11461160dcb56fa8b3bfff (diff)
downloadandroid_frameworks_opt_net_wifi-0cd22728c628e51e8f259f8404a97dec49804424.tar.gz
android_frameworks_opt_net_wifi-0cd22728c628e51e8f259f8404a97dec49804424.tar.bz2
android_frameworks_opt_net_wifi-0cd22728c628e51e8f259f8404a97dec49804424.zip
WifiConfigManager: Temporarily blacklist on disconnect
When an external entity (settings for example) triggers WifiManager.disconnect() API, ensure that we blacklist the network temporarily for 1 hour. Any internal disconnects triggered by the stack will not result in blacklisting the network. Bug: 126503889 Test: ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: If66fd078fa74b8153a9d1aca2ed362b2246f276d
Diffstat (limited to 'service/java/com/android/server/wifi/WifiNetworkFactory.java')
-rw-r--r--service/java/com/android/server/wifi/WifiNetworkFactory.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/WifiNetworkFactory.java b/service/java/com/android/server/wifi/WifiNetworkFactory.java
index 057fc99ac..98f72c2e2 100644
--- a/service/java/com/android/server/wifi/WifiNetworkFactory.java
+++ b/service/java/com/android/server/wifi/WifiNetworkFactory.java
@@ -937,7 +937,7 @@ public class WifiNetworkFactory extends NetworkFactory {
// Invoked at the termination of current connected request processing.
private void teardownForConnectedNetwork() {
Log.i(TAG, "Disconnecting from network on reset");
- mWifiInjector.getClientModeImpl().disconnectCommand();
+ mWifiInjector.getClientModeImpl().disconnectCommandInternal();
mConnectedSpecificNetworkRequest = null;
mConnectedSpecificNetworkRequestSpecifier = null;
// ensure there is no active request in progress.