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/IWifiRttController.hal b/wifi/1.0/IWifiRttController.hal
index cc827bb..a0e8b12 100644
--- a/wifi/1.0/IWifiRttController.hal
+++ b/wifi/1.0/IWifiRttController.hal
@@ -25,12 +25,12 @@
/**
* Get the iface on which the RTT operations will be performed.
*
- * @return status Status of the operation.
+ * @return status WifiStatus of the operation.
* Possible status codes:
- * |StatusCode.SUCCESS|,
- * |StatusCode.ERROR_WIFI_RTT_CONTROLLER_INVALID|
+ * |WifiStatusCode.SUCCESS|,
+ * |WifiStatusCode.ERROR_WIFI_RTT_CONTROLLER_INVALID|
* @return boundIface HIDL interface object representing the iface if bound
* to a specific iface, null otherwise
*/
- getBoundIface() generates (StatusCode status, IWifiIface boundIface);
+ getBoundIface() generates (WifiStatus status, IWifiIface boundIface);
};