summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorMingguang Xu <mingguangxu@google.com>2020-08-02 23:04:16 -0700
committerMingguang Xu <mingguangxu@google.com>2020-08-02 23:04:16 -0700
commit3e0366caf14aa4754d756a03a6d4c6f4e8f7831d (patch)
treecc98017810bfcaf771908cc68642f8f19e0d7c5e /service
parentb64129c61416da5a3817d328a7adb166485254ea (diff)
Extension API: Set initial score value to the max when starting connected network scorer
Bug: 161192240 Test: atest WifiScoreReportTest Signed-off-by: Mingguang Xu <mingguangxu@google.com> Change-Id: I8b7c96581d49f6156708c081099c9614259f666e
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiScoreReport.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiScoreReport.java b/service/java/com/android/server/wifi/WifiScoreReport.java
index fa0ba6a3c..7819bba15 100644
--- a/service/java/com/android/server/wifi/WifiScoreReport.java
+++ b/service/java/com/android/server/wifi/WifiScoreReport.java
@@ -609,6 +609,7 @@ public class WifiScoreReport {
+ " sessionId=" + sessionId);
return;
}
+ mWifiInfo.setScore(ConnectedScore.WIFI_MAX_SCORE);
mWifiConnectedNetworkScorerHolder.startSession(sessionId);
mLastScoreBreachLowTimeMillis = INVALID_WALL_CLOCK_MILLIS;
}