summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2020-03-11 14:40:41 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-03-11 14:40:41 +0000
commit47622333f37484d6cf2ebae422e245e0d002d832 (patch)
treed1e53026e8267c706b4e1b7c23d97ddd4b5c549d
parent924050178386e73cc459ec19e47afd7c304c4068 (diff)
parentfffc50f24d3a0e7f250a91e40e758a4247560b8c (diff)
Merge "[WifiConfigManager] Log the disable reason when re-enabling." into qt-qpr1-dev
-rw-r--r--service/java/com/android/server/wifi/WifiConfigManager.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiConfigManager.java b/service/java/com/android/server/wifi/WifiConfigManager.java
index a2f10914a..9472367fb 100644
--- a/service/java/com/android/server/wifi/WifiConfigManager.java
+++ b/service/java/com/android/server/wifi/WifiConfigManager.java
@@ -1558,6 +1558,12 @@ public class WifiConfigManager {
*/
private void setNetworkSelectionEnabled(WifiConfiguration config) {
NetworkSelectionStatus status = config.getNetworkSelectionStatus();
+ if (status.getNetworkSelectionStatus()
+ != NetworkSelectionStatus.NETWORK_SELECTION_ENABLED) {
+ localLog("setNetworkSelectionEnabled: configKey=" + config.configKey()
+ + " old networkStatus=" + status.getNetworkStatusString()
+ + " disableReason=" + status.getNetworkDisableReasonString());
+ }
status.setNetworkSelectionStatus(
NetworkSelectionStatus.NETWORK_SELECTION_ENABLED);
status.setDisableTime(