Fix invalid linkspeed display

Bug: 4391449
Change-Id: I8c8efcaa73d09c1e8b523f7798b6c626edc96c1e
This commit is contained in:
Irfan Sheriff
2011-05-20 16:29:30 -07:00
parent 5ee2fb92a9
commit 7c210ba5c1

View File

@@ -197,7 +197,7 @@ public class WifiConfigController implements TextWatcher,
}
WifiInfo info = mAccessPoint.getInfo();
if (info != null) {
if (info != null && info.getLinkSpeed() != -1) {
addRow(group, R.string.wifi_speed, info.getLinkSpeed() + WifiInfo.LINK_SPEED_UNITS);
}