summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--service/java/com/android/server/wifi/ConfigurationMap.java11
-rw-r--r--service/java/com/android/server/wifi/WifiConfigManager.java3
2 files changed, 14 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/ConfigurationMap.java b/service/java/com/android/server/wifi/ConfigurationMap.java
index a050b9cd8..cce895847 100644
--- a/service/java/com/android/server/wifi/ConfigurationMap.java
+++ b/service/java/com/android/server/wifi/ConfigurationMap.java
@@ -21,6 +21,8 @@ import android.net.wifi.WifiConfiguration;
import android.os.UserHandle;
import android.os.UserManager;
+import java.io.FileDescriptor;
+import java.io.PrintWriter;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
@@ -41,6 +43,15 @@ public class ConfigurationMap {
mUserManager = userManager;
}
+ /** Dump internal state for debugging. */
+ public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
+ pw.println("mPerId=" + mPerID);
+ pw.println("mPerIDForCurrentUser=" + mPerIDForCurrentUser);
+ pw.println("mScanResultMatchInfoMapForCurrentUser="
+ + mScanResultMatchInfoMapForCurrentUser);
+ pw.println("mCurrentUserId=" + mCurrentUserId);
+ }
+
// RW methods:
public WifiConfiguration put(WifiConfiguration config) {
final WifiConfiguration current = mPerID.put(config.networkId, config);
diff --git a/service/java/com/android/server/wifi/WifiConfigManager.java b/service/java/com/android/server/wifi/WifiConfigManager.java
index d607b7893..6b88f7165 100644
--- a/service/java/com/android/server/wifi/WifiConfigManager.java
+++ b/service/java/com/android/server/wifi/WifiConfigManager.java
@@ -3229,6 +3229,9 @@ public class WifiConfigManager {
pw.println(network);
}
pw.println("WifiConfigManager - Configured networks End ----");
+ pw.println("WifiConfigManager - ConfigurationMap Begin ----");
+ mConfiguredNetworks.dump(fd, pw, args);
+ pw.println("WifiConfigManager - ConfigurationMap End ----");
pw.println("WifiConfigManager - Next network ID to be allocated " + mNextNetworkId);
pw.println("WifiConfigManager - Last selected network ID " + mLastSelectedNetworkId);
pw.println("WifiConfigManager - PNO scan frequency culling enabled = "