diff options
author | Roshan Pius <rpius@google.com> | 2016-12-14 17:41:20 -0800 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2016-12-16 13:06:34 -0800 |
commit | 203cb031df35ebfe647e93b6b0d9634602693668 (patch) | |
tree | 6c90949b5036e51e2c60d633067cb4fbf12f9f84 /wifi/1.0/IWifiChip.hal | |
parent | 26801cb4ce5f7f09fbc9569ba54b3c87ae5542c5 (diff) | |
download | platform_hardware_interfaces-203cb031df35ebfe647e93b6b0d9634602693668.tar.gz platform_hardware_interfaces-203cb031df35ebfe647e93b6b0d9634602693668.tar.bz2 platform_hardware_interfaces-203cb031df35ebfe647e93b6b0d9634602693668.zip |
wifi: Add support for alert handler
This is a debug mechanism provided for vendors to inform the framework
about the occurence of any fatal events.
Bug: 33620898
Test: Compiles
Change-Id: Ib6ac322131796792f66f87237a62eb8f5a013433
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); }; |