diff options
Diffstat (limited to 'wifi/1.0/IWifiChip.hal')
-rw-r--r-- | wifi/1.0/IWifiChip.hal | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/wifi/1.0/IWifiChip.hal b/wifi/1.0/IWifiChip.hal index 051a08859c..e903ced64c 100644 --- a/wifi/1.0/IWifiChip.hal +++ b/wifi/1.0/IWifiChip.hal @@ -163,6 +163,10 @@ interface IWifiChip { * Host wake reasons stats collection. */ DEBUG_HOST_WAKE_REASON_STATS = 1 << 6, + /** + * Error alerts. + */ + DEBUG_ERROR_ALERTS = 1 << 7 }; /** @@ -640,4 +644,21 @@ interface IWifiChip { */ getDebugHostWakeReasonStats() generates (WifiStatus status, WifiDebugHostWakeReasonStats stats); + + /** + * API to enable/disable alert notifications from the chip. + * These alerts must be used to notify framework of any fatal error events + * that the chip encounters via |IWifiChipEventCallback.onDebugErrorAlert| method. + * Must fail if |ChipCapabilityMask.DEBUG_ERROR_ALERTS| is not set. + * + * @param enable true to enable, false to disable. + * @return status WifiStatus of the operation. + * Possible status codes: + * |WifiStatusCode.SUCCESS|, + * |WifiStatusCode.ERROR_WIFI_CHIP_INVALID|, + * |WifiStatusCode.ERROR_NOT_SUPPORTED|, + * |WifiStatusCode.NOT_AVAILABLE|, + * |WifiStatusCode.UNKNOWN| + */ + enableDebugErrorAlerts(bool enable) generates (WifiStatus status); }; |