Merge "WiFi: Add Tx and rx link speed in network details"

This commit is contained in:
Sunil Ravi
2019-01-15 18:43:58 +00:00
committed by Android (Google) Code Review
7 changed files with 93 additions and 33 deletions

View File

@@ -363,9 +363,14 @@ public class WifiConfigController implements TextWatcher,
}
WifiInfo info = mAccessPoint.getInfo();
if (info != null && info.getLinkSpeed() != -1) {
addRow(group, R.string.wifi_speed, String.format(
res.getString(R.string.link_speed), info.getLinkSpeed()));
if (info != null && info.getTxLinkSpeedMbps() != -1) {
addRow(group, R.string.tx_wifi_speed, String.format(
res.getString(R.string.tx_link_speed), info.getTxLinkSpeedMbps()));
}
if (info != null && info.getRxLinkSpeedMbps() != -1) {
addRow(group, R.string.rx_wifi_speed, String.format(
res.getString(R.string.rx_link_speed), info.getRxLinkSpeedMbps()));
}
if (info != null && info.getFrequency() != -1) {