History log of /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/SelfRecoveryTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e8cf3b95869b71ff4719b037f79d74b74d2a2fc3 23-Jun-2017 Glen Kuhne <kuh@google.com> Limit SelfRecovery wifi restarts to some amount

This prevents wifi from getting into an extreme restart loop if there's
some repeated HAL or WIFICOND crash. Currently limits it to ~48 per day.

Added a buffer logging restarts for HAL_CRASH and WIFICOND_CRASH.
If buffer has more than 2 restarts logged in the last 2 hour time
window, further restarts are ignored. Buffer is cleaned up on every
trigger.

Bug: 62835400
Test: Unit tests
Change-Id: Idb0bc060424423f1a27782868689bff5ed2c0520
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/SelfRecoveryTest.java
96a9dbeb3a622e44c13ff7be8decf36d06ff7dbb 18-May-2017 Roshan Pius <rpius@google.com> SelfRecovery: Module for initiating internal stack restarts

Adding a new module for initiating stack restarts when we detect some
kind of failure internally. This module essentially moves the
|restartWifiStack| functionality out of WifiLastResortWatchdog so that it
can be reused by WifiStateMachine for HAL/wificond crashes.
The 3 reasons for triggering self recovery currently are:
1. Last resort watchdog bite.
2. HAL crash.
3. Wificond crash.

TBD: We could potentially perform the same recovery on a supplicant crash.

Bug: 36586897
Test: Manual tests by crashing the HAL & wificond.
Test: Unit tests.
Change-Id: Id3e0c2cc7b339ff02ae4a5597a1f2009cb946125
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/SelfRecoveryTest.java