summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshish Kumar Dhanotiya <adhanoti@codeaurora.org>2020-06-15 23:38:27 +0530
committernshrivas <nshrivas@codeaurora.org>2020-06-16 09:24:55 -0700
commitdc60d3f2d1ba69bf961694f375ae115c4448a983 (patch)
treed51f31da6cbb21bad7a3fd7399a8a8fb0df9ba1d
parent6609eb547904d256b3fa1f086cb49debbe220d96 (diff)
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. CRs-Fixed: 2710446 Change-Id: I2b6128f80fa994a5d2ed2fdd2feeaa1ae2e341d3
-rw-r--r--core/hdd/src/wlan_hdd_stats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/hdd/src/wlan_hdd_stats.c b/core/hdd/src/wlan_hdd_stats.c
index 50650f970076..e2e762c9a69e 100644
--- a/core/hdd/src/wlan_hdd_stats.c
+++ b/core/hdd/src/wlan_hdd_stats.c
@@ -1079,7 +1079,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;