From b562d5aa806c6ddcb666318249534464c5bb1c15 Mon Sep 17 00:00:00 2001 From: Mohit Ghuley Date: Wed, 11 Apr 2018 18:59:58 +0530 Subject: [PATCH] [9610] wlbt : Additional HAL Changes for Enhanced LogGing Support. Additional HAL changes to support Enhanced LogGing. Change-Id: I992b3ab86842fc85e6c11d186e9ab5c7540ff310 SCSC-Bug-Id:SSB-SSB-36749 Signed-off-by: Mohit Ghuley --- wifi_hal.cpp | 3 +-- wifi_logger.cpp | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wifi_hal.cpp b/wifi_hal.cpp index d18a0e8..97ba77a 100755 --- a/wifi_hal.cpp +++ b/wifi_hal.cpp @@ -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 */ diff --git a/wifi_logger.cpp b/wifi_logger.cpp index 65ba7ed..8e5f420 100755 --- a/wifi_logger.cpp +++ b/wifi_logger.cpp @@ -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); wifi_error result = (wifi_error)cmd->start(); cmd->releaseRef(); + memset(tx_report_bufs, 0, (n_requested_fates * sizeof(wifi_tx_report))); return result; } @@ -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); wifi_error result = (wifi_error)cmd->start(); cmd->releaseRef(); + memset(rx_report_bufs, 0, (n_requested_fates * sizeof(wifi_rx_report))); return result; } -- 2.20.1