wifi(interface): Make methods synchronous
Having all the HIDL methods asynchronous, makes it hard for the
calling code to keep track of the operation status/result.
There are some operations which will generate asynchronous results (like
bgscan), convert all the other methods to synchronous methods.
The |EventCallback| objects will now just broadcast important events
(needed for other clients to listen for state changes). This will no
longer be used to send responses to every command sent to the HAL.
Bug: 32061909
Test: `./hardware/interfaces/update-makefiles.sh`
Change-Id: Id2433f4c8e028268dd027cdeb239ba4082b157b5
diff --git a/wifi/1.0/IWifiEventCallback.hal b/wifi/1.0/IWifiEventCallback.hal
index 33accff..718f36c 100644
--- a/wifi/1.0/IWifiEventCallback.hal
+++ b/wifi/1.0/IWifiEventCallback.hal
@@ -24,16 +24,6 @@
oneway onStart();
/**
- * Called in response to a call to start indicating that the operation
- * failed. After this callback the HAL will be considered stopped. Another
- * call to start will attempt to reinitialize the HAL; however, there is a
- * chance it may fail again.
- *
- * @param reason Failure reason code.
- */
- oneway onStartFailure(FailureReason reason);
-
- /**
* Called in response to a call to stop indicating that the operation
* completed. When this event is received all IWifiChip objects retrieved
* after the last call to start will be considered invalid.
@@ -43,10 +33,10 @@
/**
* Called when the Wi-Fi system failed in a way that caused it be disabled.
* Calling start again must restart Wi-Fi as if stop then start was called
- * (full state reset). When this event is received all IWifiChip objects
- * retrieved after the last call to start will be considered invalid.
+ * (full state reset). When this event is received all IWifiChip & IWifiIface
+ * objects retrieved after the last call to start will be considered invalid.
*
- * @param reason Failure reason code.
+ * @param status Failure reason code.
*/
- oneway onFailure(FailureReason reason);
+ oneway onFailure(WifiStatus status);
};