Merge "Only display RSSI/band information if network is connected." into oc-mr1-dev

This commit is contained in:
TreeHugger Robot
2017-07-26 03:42:09 +00:00
committed by Android (Google) Code Review

View File

@@ -754,7 +754,7 @@ public class AccessPoint implements Comparable<AccessPoint> {
if (WifiTracker.sVerboseLogging) {
// Add RSSI/band information for this config, what was seen up to 6 seconds ago
// verbose WiFi Logging is only turned on thru developers settings
if (mInfo != null && mNetworkInfo != null) { // This is the active connection
if (isActive() && mInfo != null) {
summary.append(" f=" + Integer.toString(mInfo.getFrequency()));
}
summary.append(" " + getVisibilityStatus());
@@ -819,7 +819,7 @@ public class AccessPoint implements Comparable<AccessPoint> {
long now = System.currentTimeMillis();
if (mInfo != null) {
if (isActive() && mInfo != null) {
bssid = mInfo.getBSSID();
if (bssid != null) {
visibility.append(" ").append(bssid);