summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorJimmy Chen <jimmycmchen@google.com>2020-04-07 17:38:45 +0800
committerJimmy Chen <jimmycmchen@google.com>2020-04-09 01:59:32 +0000
commit4b4a9261ff84ace0ab06cc74b8889f7b64342e3a (patch)
treef49dbf37c704dc11f404ee550376f68e344bb044 /service
parent82298418fe24c1d0d8f62ba1b79e55d168bf6351 (diff)
wifi: enabling a network should also remove this network from the blocklist
When a network is re-enabled due to update, it might be in block list due to incorrect credentials. Although this is a enabled network, the blocklist would still filter it out from the network selection. Bug: 153393153 Test: atest FrameworksWifiTests Change-Id: I02d886887b8654870c443e0e27f61dabccf020c1
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiConfigManager.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiConfigManager.java b/service/java/com/android/server/wifi/WifiConfigManager.java
index 418c16075..5c2c869e7 100644
--- a/service/java/com/android/server/wifi/WifiConfigManager.java
+++ b/service/java/com/android/server/wifi/WifiConfigManager.java
@@ -2703,6 +2703,7 @@ public class WifiConfigManager {
network = configuration.SSID;
}
mUserTemporarilyDisabledList.remove(network);
+ mWifiInjector.getBssidBlocklistMonitor().clearBssidBlocklistForSsid(configuration.SSID);
Log.d(TAG, "Enable disabled network: " + network + " num="
+ mUserTemporarilyDisabledList.size());
}