[9610] wlbt : Additional HAL Changes for Enhanced LogGing Support.
authorMohit Ghuley <mohit.ghuley@samsung.com>
Wed, 11 Apr 2018 13:29:58 +0000 (18:59 +0530)
committerTarun Karela <t.karela@samsung.com>
Mon, 4 Jun 2018 09:40:47 +0000 (10:40 +0100)
Additional HAL changes to support Enhanced LogGing.

Change-Id: I992b3ab86842fc85e6c11d186e9ab5c7540ff310
SCSC-Bug-Id:SSB-SSB-36749
Signed-off-by: Mohit Ghuley <mohit.ghuley@samsung.com>
wifi_hal.cpp
wifi_logger.cpp

index d18a0e8fcdcc7850037c7f5dcc8bf20d9284aca8..97ba77aa8973cf830a20668db6d613f85a018320 100755 (executable)
@@ -62,8 +62,7 @@ enum wifi_rssi_monitor_attr {
 static wifi_error wifi_start_rssi_monitoring(wifi_request_id id, wifi_interface_handle
                         iface, s8 max_rssi, s8 min_rssi, wifi_rssi_event_handler eh);
 static wifi_error wifi_stop_rssi_monitoring(wifi_request_id id, wifi_interface_handle iface);
-wifi_error (*wifi_get_wake_reason_stats)(wifi_interface_handle iface,
-                        WLAN_DRIVER_WAKE_REASON_CNT *wifi_wake_reason_cnt);
+wifi_error wifi_get_wake_reason_stats(wifi_interface_handle iface, WLAN_DRIVER_WAKE_REASON_CNT *wifi_wake_reason_cnt);
 
 /* Initialize/Cleanup */
 
index 65ba7ed33777493268849ed611952d125bbd13ba..8e5f420f5b6dfc32eb906b335348cbb052cfe875 100755 (executable)
@@ -978,6 +978,7 @@ wifi_error wifi_get_tx_pkt_fates(wifi_interface_handle handle,
     NULL_CHECK_RETURN(cmd, "memory allocation failure", WIFI_ERROR_OUT_OF_MEMORY);\r
     wifi_error result = (wifi_error)cmd->start();\r
     cmd->releaseRef();\r
+    memset(tx_report_bufs, 0, (n_requested_fates * sizeof(wifi_tx_report)));\r
     return result;\r
 }\r
 \r
@@ -990,6 +991,7 @@ wifi_error wifi_get_rx_pkt_fates(wifi_interface_handle handle,
     NULL_CHECK_RETURN(cmd, "memory allocation failure", WIFI_ERROR_OUT_OF_MEMORY);\r
     wifi_error result = (wifi_error)cmd->start();\r
     cmd->releaseRef();\r
+    memset(rx_report_bufs, 0, (n_requested_fates * sizeof(wifi_rx_report)));\r
     return result;\r
 }\r
 \r