wifi(interface): Add status for every method
Add a status parameter for every HIDL interface object method which can
possibly become invalid. This should help inform the caller that the
object being used is stale/invalid now.
While there,
Rename |CommandFailureReson| to |FailureReasonCode|.
NOTE: |FailureReason| will continue to indicate any errors during the
processing of the command via the corresponding |onFailure| callback.
Bug: 32056230
Test: Compiles
Change-Id: I2ec5af3075221e483579410f344bcedd6bf17a93
diff --git a/wifi/1.0/IWifiIface.hal b/wifi/1.0/IWifiIface.hal
index f4150e7..726a973 100644
--- a/wifi/1.0/IWifiIface.hal
+++ b/wifi/1.0/IWifiIface.hal
@@ -23,14 +23,22 @@
/**
* Get the type of this iface.
*
+ * @return status Status of the operation.
+ * Possible status codes:
+ * |StatusCode.SUCCESS|,
+ * |StatusCode.ERROR_WIFI_IFACE_INVALID|
* @return type One of the supported iface types.
*/
- getType() generates (IfaceType type);
+ getType() generates (StatusCode status, IfaceType type);
/**
* Get the name of this iface.
*
+ * @return status Status of the operation.
+ * Possible status codes:
+ * |StatusCode.SUCCESS|,
+ * |StatusCode.ERROR_WIFI_IFACE_INVALID|
* @return name Name of the iface.
*/
- getName() generates (string name);
+ getName() generates (StatusCode status, string name);
};