diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2020-03-11 14:40:41 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-03-11 14:40:41 +0000 |
commit | 47622333f37484d6cf2ebae422e245e0d002d832 (patch) | |
tree | d1e53026e8267c706b4e1b7c23d97ddd4b5c549d | |
parent | 924050178386e73cc459ec19e47afd7c304c4068 (diff) | |
parent | fffc50f24d3a0e7f250a91e40e758a4247560b8c (diff) |
Merge "[WifiConfigManager] Log the disable reason when re-enabling." into qt-qpr1-dev
-rw-r--r-- | service/java/com/android/server/wifi/WifiConfigManager.java | 6 |
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( |