summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2016-02-12 00:29:13 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-02-12 00:29:13 +0000
commit6badc8a085a10b2891b5f1b148ce3d5bd0e52083 (patch)
tree74e23d9d19fd95e567856ff41a61927b481fff11
parent67494a063f799838dad994204e2651c3edc5f7b3 (diff)
parent5aa942ee3b1cbc5d817e6330555d25cd124c7546 (diff)
downloadlibhardware_legacy-6badc8a085a10b2891b5f1b148ce3d5bd0e52083.tar.gz
Modify the wake reasons accounting API\'s
am: 5aa942ee3b * commit '5aa942ee3b1cbc5d817e6330555d25cd124c7546': Modify the wake reasons accounting API's
-rw-r--r--include/hardware_legacy/wifi_hal.h26
1 files changed, 18 insertions, 8 deletions
diff --git a/include/hardware_legacy/wifi_hal.h b/include/hardware_legacy/wifi_hal.h
index d87ec1e..ea32b6c 100644
--- a/include/hardware_legacy/wifi_hal.h
+++ b/include/hardware_legacy/wifi_hal.h
@@ -176,15 +176,25 @@ typedef struct rx_multicast_cnt_t{
int other_rx_multicast_addr_cnt;/*Rx wake packet was non-ipv4 and non-ipv6*/
} RX_MULTICAST_WAKE_DATA_CNT;
-
+/*
+ * Structure holding all the driver/firmware wake count reasons.
+ *
+ * Buffers for the array fields (cmd_event_wake_cnt/driver_fw_local_wake_cnt)
+ * are allocated and freed by the framework. The size of each allocated
+ * array is indicated by the corresponding |_cnt| field. HAL needs to fill in
+ * the corresponding |_used| field to indicate the number of elements used in
+ * the array.
+ */
typedef struct wlan_driver_wake_reason_cnt_t {
- int total_cmd_event_wake; /* Total cmd event wake */
- int *cmd_event_wake_cnt; /* Individual wake count, each index a reason */
- int cmd_event_wake_cnt_sz; /* How may reasons for wake - driver specific */
-
- int total_driver_fw_local_wake; /* Total count of driver fw wake, for local reasons */
- int *driver_fw_local_wake_cnt; /* Individual wake count, local to driver/fw */
- int driver_fw_local_wake_cnt_sz; /* How many local driver/fw wake - driver specific */
+ int total_cmd_event_wake; /* Total count of cmd event wakes */
+ int *cmd_event_wake_cnt; /* Individual wake count array, each index a reason */
+ int cmd_event_wake_cnt_sz; /* Max number of cmd event wake reasons */
+ int cmd_event_wake_cnt_used; /* Number of cmd event wake reasons specific to the driver */
+
+ int total_driver_fw_local_wake; /* Total count of drive/fw wakes, for local reasons */
+ int *driver_fw_local_wake_cnt; /* Individual wake count array, each index a reason */
+ int driver_fw_local_wake_cnt_sz; /* Max number of local driver/fw wake reasons */
+ int driver_fw_local_wake_cnt_used; /* Number of local driver/fw wake reasons specific to the driver */
int total_rx_data_wake; /* total data rx packets, that woke up host */
RX_DATA_WAKE_CNT_DETAILS rx_wake_details;