Add API "startSubsystemRestart" and callback function
In order to trigger subsystem restart to reload wlan firmware,
this change adds an API for framework and vendor HAL.
Meanwhile, create new callback function for subsystem restart instead of
general callback "onFailure()".
Bug: 178126071
Test: vendor HAL can received API call
subsystem restart will callback "onSubsystemRestart()"
Change-Id: If3dc84049a9171677ad281c9bcc67a44dc722bdb
diff --git a/wifi/1.5/IWifiEventCallback.hal b/wifi/1.5/IWifiEventCallback.hal
index 17dce39..ff27630 100644
--- a/wifi/1.5/IWifiEventCallback.hal
+++ b/wifi/1.5/IWifiEventCallback.hal
@@ -17,5 +17,12 @@
package android.hardware.wifi@1.5;
import @1.0::IWifiEventCallback;
+import @1.0::WifiStatus;
-interface IWifiEventCallback extends @1.0::IWifiEventCallback {};
+interface IWifiEventCallback extends @1.0::IWifiEventCallback {
+ /**
+ * Must be called when the Wi-Fi subsystem restart completes.
+ * Once this event is received, framework must fully reset the Wi-Fi stack state.
+ */
+ oneway onSubsystemRestart(WifiStatus status);
+};