summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorMichael Plass <mplass@google.com>2018-05-22 17:17:17 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-05-22 17:17:17 +0000
commit76b64fecb6dd8ef593582295f01e543eb41f46a7 (patch)
treed20f232bb3646571f8f66d04817ca1f3f8d4edfa /service
parent7b885be3a672a10babcfb6868d73c766c91d8d43 (diff)
parent1ee61b2af7ff4079416d863dd55b5383d3950f15 (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.java4
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();