summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
authorvandwalle <vandwalle@google.com>2014-12-18 22:28:38 +0000
committerandroid-build-merger <android-build-merger@google.com>2014-12-18 22:28:38 +0000
commit1c9c3f4e9be1933edfc8de0b1e3c57f7e36a985a (patch)
tree5e2a9f4bfc665c1e1dfc0c510375b280fbdce80f /wifi
parent6c13f5921dd69e94d0dcf6bad7ce2ab9a038cdfa (diff)
parent67878bb5ea8b4cc873a25ab577a94a8d6f122dc1 (diff)
downloadframeworks_base-1c9c3f4e9be1933edfc8de0b1e3c57f7e36a985a.zip
frameworks_base-1c9c3f4e9be1933edfc8de0b1e3c57f7e36a985a.tar.gz
frameworks_base-1c9c3f4e9be1933edfc8de0b1e3c57f7e36a985a.tar.bz2
am a3c187bc: am f87606fe: Merge "add debug logs to confirm network flapping issue is fixed Bug:18706288" into lmp-mr1-dev
automerge: 67878bb * commit '67878bb5ea8b4cc873a25ab577a94a8d6f122dc1': add debug logs to confirm network flapping issue is fixed Bug:18706288
Diffstat (limited to 'wifi')
-rw-r--r--wifi/java/android/net/wifi/WifiConfiguration.java18
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 e90e6ed..5202cc3 100644
--- a/wifi/java/android/net/wifi/WifiConfiguration.java
+++ b/wifi/java/android/net/wifi/WifiConfiguration.java
@@ -510,6 +510,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;
@@ -536,16 +541,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();
}