diff options
author | Michael Plass <mplass@google.com> | 2018-05-22 17:17:17 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-05-22 17:17:17 +0000 |
commit | 76b64fecb6dd8ef593582295f01e543eb41f46a7 (patch) | |
tree | d20f232bb3646571f8f66d04817ca1f3f8d4edfa /service | |
parent | 7b885be3a672a10babcfb6868d73c766c91d8d43 (diff) | |
parent | 1ee61b2af7ff4079416d863dd55b5383d3950f15 (diff) |
Merge "[WifiScoreReport] Don't report score if RSSI is invalid" into pi-dev
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/WifiScoreReport.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiScoreReport.java b/service/java/com/android/server/wifi/WifiScoreReport.java index c6a7105be..d4d443bb2 100644 --- a/service/java/com/android/server/wifi/WifiScoreReport.java +++ b/service/java/com/android/server/wifi/WifiScoreReport.java @@ -89,6 +89,10 @@ public class WifiScoreReport { */ public void calculateAndReportScore(WifiInfo wifiInfo, NetworkAgent networkAgent, WifiMetrics wifiMetrics) { + if (wifiInfo.getRssi() == WifiInfo.INVALID_RSSI) { + Log.d(TAG, "Not reporting score because RSSI is invalid"); + return; + } int score; long millis = mClock.getWallClockMillis(); |