wifi(interface): Add/Correct docstring params
Changes in the CL:
1. Add missing docstring params in the HIDL interface.
2. Reword some method docs. Occurences of "will" is replaced
by "must" (based on comments received on supplicant HIDL interface:
go/aog/275115).
3. Add onFailure callbacks for all the methods and added docstrings for
them.
Bug: 31352200
Test: mmma -j32 hardware/interfaces/wifi/1.0
Change-Id: Ib7152625851023d6244f742bb77a8fdc0829e00d
diff --git a/wifi/1.0/IWifiChipEventCallback.hal b/wifi/1.0/IWifiChipEventCallback.hal
index 79f6d2a..2161c5d 100644
--- a/wifi/1.0/IWifiChipEventCallback.hal
+++ b/wifi/1.0/IWifiChipEventCallback.hal
@@ -24,7 +24,7 @@
* considered invalid.
*
* @param modeId The mode that the chip switched to, corresponding to the id
- * property of the target ChipMode.
+ * property of the target ChipMode.
*/
oneway onChipReconfigured(ChipModeId modeId);
@@ -34,7 +34,8 @@
* assumed to be invalid.
*
* @param modeId The mode that the chip failed switched to, corresponding to
- * the id property of the target ChipMode.
+ * the id property of the target ChipMode.
+ * @param reason Failure reason code.
*/
oneway onChipReconfigureFailure(ChipModeId modeId, FailureReason reason);
@@ -51,18 +52,45 @@
/**
* Callback with debug information about this chip
+ *
+ * @param info Instance of |ChipDebugInfo|.
*/
oneway onChipDebugInfoAvailable(ChipDebugInfo info);
/**
- * Callback with a vendor specific debug blob from the driver.
- * This blob will be dumped as part of the bug report.
+ * Callback to be invoked on failure to fetch debug info about this chip.
+ *
+ * @param reason Failure reason code.
*/
- oneway onDriverDebugDumpAvailable(vec<uint8_t> blob);
+ oneway onChipDebugInfoFailure(FailureReason reason);
/**
* Callback with a vendor specific debug blob from the driver.
* This blob will be dumped as part of the bug report.
+ *
+ * @param blob Vector of bytes retrieved from the driver.
+ */
+ oneway onDriverDebugDumpAvailable(vec<uint8_t> blob);
+
+ /**
+ * Callback to be invoked on failure to fetch debug blob from driver.
+ *
+ * @param reason Failure reason code.
+ */
+ oneway onDriverDebugDumpFailure(FailureReason reason);
+
+ /**
+ * Callback with a vendor specific debug blob from the driver.
+ * This blob will be dumped as part of the bug report.
+ *
+ * @param blob Vector of bytes retrieved from the driver.
*/
oneway onFirmwareDebugDumpAvailable(vec<uint8_t> blob);
+
+ /**
+ * Callback to be invoked on failure to fetch debug blob from driver.
+ *
+ * @param reason Failure reason code.
+ */
+ oneway onFirmwareDebugDumpFailure(FailureReason reason);
};