From 637e95c4744b9c704d9fae772887e0b21e215adb Mon Sep 17 00:00:00 2001 From: Roger Wang Date: Mon, 10 Jun 2019 17:53:00 +0800 Subject: WifiDiagnostics: Keep last failed connection fates To prevent last failed connection fates be erased after user turned wifi OFF/ON. With this patch, we could have more infomation even if issue be recovered by OFF/ON Wifi. Bug: 134569206 Test: ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: I8d321c4e24475f0f42090557acaa5a4c300354f7 --- service/java/com/android/server/wifi/WifiDiagnostics.java | 1 - 1 file changed, 1 deletion(-) diff --git a/service/java/com/android/server/wifi/WifiDiagnostics.java b/service/java/com/android/server/wifi/WifiDiagnostics.java index 52a787adb..aa34f6bed 100644 --- a/service/java/com/android/server/wifi/WifiDiagnostics.java +++ b/service/java/com/android/server/wifi/WifiDiagnostics.java @@ -447,7 +447,6 @@ class WifiDiagnostics extends BaseWifiDiagnostics { } private void clearVerboseLogs() { - mPacketFatesForLastFailure = null; for (int i = 0; i < mLastAlerts.size(); i++) { mLastAlerts.get(i).clearVerboseLogs(); -- cgit v1.2.3