diff options
author | vandwalle <vandwalle@google.com> | 2014-12-15 15:41:34 -0800 |
---|---|---|
committer | vandwalle <vandwalle@google.com> | 2014-12-17 16:38:58 -0800 |
commit | 72e1d3f53826c2f19727e30e4b576a0e2d0e3728 (patch) | |
tree | 2a8800d25d53b34bd70c3b9107a8b42714d57f61 /wifi | |
parent | e2ed349cfa838223160e83be7df144e2265cdce4 (diff) | |
download | frameworks_base-72e1d3f53826c2f19727e30e4b576a0e2d0e3728.zip frameworks_base-72e1d3f53826c2f19727e30e4b576a0e2d0e3728.tar.gz frameworks_base-72e1d3f53826c2f19727e30e4b576a0e2d0e3728.tar.bz2 |
add debug logs to confirm network flapping issue is fixed
Bug:18706288
Change-Id: I59378faafbccfa58639d942c8b8e2e0e815261f4
Diffstat (limited to 'wifi')
-rw-r--r-- | wifi/java/android/net/wifi/WifiConfiguration.java | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/wifi/java/android/net/wifi/WifiConfiguration.java b/wifi/java/android/net/wifi/WifiConfiguration.java index 12902bd..6543c03 100644 --- a/wifi/java/android/net/wifi/WifiConfiguration.java +++ b/wifi/java/android/net/wifi/WifiConfiguration.java @@ -487,6 +487,11 @@ public class WifiConfiguration implements Parcelable { public long age24; // timestamp of the strongest 2.4GHz BSSID (last time it was seen) public String BSSID24; public String BSSID5; + public int score; // Debug only, indicate last score used for autojoin/cell-handover + public int currentNetworkBoost; // Debug only, indicate boost applied to RSSI if current + public int bandPreferenceBoost; // Debug only, indicate boost applied to RSSI if current + public int lastChoiceBoost; // Debug only, indicate last choice applied to this configuration + public String lastChoiceConfig; // Debug only, indicate last choice applied to this configuration public Visibility() { rssi5 = INVALID_RSSI; @@ -513,16 +518,23 @@ public class WifiConfiguration implements Parcelable { sbuf.append(","); sbuf.append(Integer.toString(num24)); if (BSSID24 != null) sbuf.append(",").append(BSSID24); - } else { - sbuf.append("*"); } - sbuf.append(" - "); + sbuf.append("; "); if (rssi5 > INVALID_RSSI) { sbuf.append(Integer.toString(rssi5)); sbuf.append(","); sbuf.append(Integer.toString(num5)); if (BSSID5 != null) sbuf.append(",").append(BSSID5); } + if (score != 0) { + sbuf.append("; ").append(score); + sbuf.append(", ").append(currentNetworkBoost); + sbuf.append(", ").append(bandPreferenceBoost); + if (lastChoiceConfig != null) { + sbuf.append(", ").append(lastChoiceBoost); + sbuf.append(", ").append(lastChoiceConfig); + } + } sbuf.append("]"); return sbuf.toString(); } |