diff options
author | Oscar Shu <xshu@google.com> | 2020-08-04 20:49:52 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-08-04 20:49:52 +0000 |
commit | bf837e17c1a831c5ad5dde452b5ab3f5d136b614 (patch) | |
tree | 883eb7320fb02aac70b39cc24ef43bcd10ad3bbf /service | |
parent | 8c113bc36b80a18a0823ca6ce966c85747671b85 (diff) | |
parent | 6b983b4e0c5a1e4073983e0fda3d3d6a57e9f6a2 (diff) |
Merge "Ringbuffer stops logging after wifi toggle" into rvc-qpr-dev
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/WifiDiagnostics.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/service/java/com/android/server/wifi/WifiDiagnostics.java b/service/java/com/android/server/wifi/WifiDiagnostics.java index 6fc75c6ea..38045625e 100644 --- a/service/java/com/android/server/wifi/WifiDiagnostics.java +++ b/service/java/com/android/server/wifi/WifiDiagnostics.java @@ -226,6 +226,10 @@ class WifiDiagnostics extends BaseWifiDiagnostics { if (!mActiveInterfaces.isEmpty()) { return; } + if (mLogLevel != VERBOSE_NO_LOG) { + stopLoggingAllBuffers(); + mRingBuffers = null; + } if (mIsLoggingEventHandlerRegistered) { if (!mWifiNative.resetLogHandler()) { mLog.wC("Fail to reset log handler"); @@ -236,10 +240,6 @@ class WifiDiagnostics extends BaseWifiDiagnostics { // the log handler is in an indeterminate state. mIsLoggingEventHandlerRegistered = false; } - if (mLogLevel != VERBOSE_NO_LOG) { - stopLoggingAllBuffers(); - mRingBuffers = null; - } } @Override |