From e6b769be80938e5a974a2ac96d2cb70ae5ed3ef9 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Dhanotiya Date: Mon, 15 Jun 2020 23:38:27 +0530 Subject: qcacld-3.0: Process ll stats correctly Currently in the api hdd_process_ll_stats, if the stats type is iface stats in that case the mem copy to the final result uses the size of the structure pointer instead of size of the structure which results in incorrect value for the iface stats. To address above issue use the size of the structure for the memcopy of the iface stats. Bug: 158521704 CRs-Fixed: 2710446 Change-Id: I2b6128f80fa994a5d2ed2fdd2feeaa1ae2e341d3 (cherry picked from commit 8450514e45e4a4a8a74a451ab06b58d19561d56b) --- core/hdd/src/wlan_hdd_stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_stats.c b/core/hdd/src/wlan_hdd_stats.c index 72a83b8d99..eaef9781b2 100644 --- a/core/hdd/src/wlan_hdd_stats.c +++ b/core/hdd/src/wlan_hdd_stats.c @@ -1082,7 +1082,7 @@ static void hdd_process_ll_stats(tSirLLStatsResults *results, goto exit; } qdf_mem_copy(stats->result, results->results, - sizeof(tpSirWifiIfaceStat)); + sizeof(tSirWifiIfaceStat)); if (!results->num_peers) priv->request_bitmap &= ~(WMI_LINK_STATS_ALL_PEER); priv->request_bitmap &= ~stats->result_param_id; -- cgit v1.2.3