diff options
author | Roshan Pius <rpius@google.com> | 2017-06-06 14:41:55 -0700 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2017-06-07 23:17:44 +0000 |
commit | 815dbc39bb667779f67804b7c324db507eb27ab8 (patch) | |
tree | ea26458d5e6ad1e4183b41033443208fbda3bc7e /tests | |
parent | dc3aa10677780c04a32542d1950b6be7e6a4cd42 (diff) |
WifiLastResortWatchdog: Clear failure counts on HAL init
These counters should be reset whenever we restart wpa_supplicant and
initialize the HAL.
This is to clear these counters on wifi stack restarts (internal or user
initiated).
Bug: 38422186
Test: Unit tests
Change-Id: Icf7e558cbc667da37eb471a7d98ac11b5d8f073d
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/WifiStateMachineTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiStateMachineTest.java b/tests/wifitests/src/com/android/server/wifi/WifiStateMachineTest.java index 2a30b671b..54c7f2e2d 100644 --- a/tests/wifitests/src/com/android/server/wifi/WifiStateMachineTest.java +++ b/tests/wifitests/src/com/android/server/wifi/WifiStateMachineTest.java @@ -796,6 +796,9 @@ public class WifiStateMachineTest { mWsm.sendMessage(WifiMonitor.SUP_CONNECTION_EVENT); mLooper.dispatchAll(); + + verify(mWifiNative).setupForClientMode(); + verify(mWifiLastResortWatchdog).clearAllFailureCounts(); } private void addNetworkAndVerifySuccess(boolean isHidden) throws Exception { |