summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshish Kumar Dhanotiya <adhanoti@codeaurora.org>2020-06-15 23:38:27 +0530
committerKumar Anand <kumaranand@google.com>2020-06-24 01:05:19 +0000
commite6b769be80938e5a974a2ac96d2cb70ae5ed3ef9 (patch)
tree1c88f93ffc955ef0d30b372979c748417068e821
parentbca84bdc639a5b36f12383b3b090ef30b15f7613 (diff)
downloadqcacld-android-msm-crosshatch-4.9-r-beta-3.tar.gz
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)
-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 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;