From: Mohit Ghuley Date: Wed, 11 Apr 2018 13:29:58 +0000 (+0530) Subject: [9610] wlbt : Additional HAL Changes for Enhanced LogGing Support. X-Git-Tag: MMI-QSBS30.62-17-8~35 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b562d5aa806c6ddcb666318249534464c5bb1c15;p=GitHub%2FMotorolaMobilityLLC%2Fhardware-samsung_slsi-scsc_wifibt-wifi_hal.git [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 --- 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; }