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
|