OSDN Git Service

Fix invalid linkspeed display
authorIrfan Sheriff <isheriff@google.com>
Fri, 20 May 2011 23:29:30 +0000 (16:29 -0700)
committerIrfan Sheriff <isheriff@google.com>
Mon, 23 May 2011 23:47:02 +0000 (16:47 -0700)
Bug: 4391449
Change-Id: I8c8efcaa73d09c1e8b523f7798b6c626edc96c1e

src/com/android/settings/wifi/WifiConfigController.java

index 77aa7c7..a20e160 100644 (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);
             }