diff options
author | Ashish Kumar Dhanotiya <adhanoti@codeaurora.org> | 2020-06-15 23:38:27 +0530 |
---|---|---|
committer | Kumar Anand <kumaranand@google.com> | 2020-06-24 01:05:19 +0000 |
commit | e6b769be80938e5a974a2ac96d2cb70ae5ed3ef9 (patch) | |
tree | 1c88f93ffc955ef0d30b372979c748417068e821 | |
parent | bca84bdc639a5b36f12383b3b090ef30b15f7613 (diff) | |
download | qcacld-android-msm-crosshatch-4.9-r-beta-3.tar.gz |
qcacld-3.0: Process ll stats correctlyandroid-r-beta-3_r0.3android-r-beta-3_r0.2android-11.0.0_r0.8android-11.0.0_r0.3android-11.0.0_r0.23android-11.0.0_r0.22android-11.0.0_r0.2android-11.0.0_r0.10android-msm-crosshatch-4.9-r-beta-3android-msm-crosshatch-4.9-android11android-msm-bonito-4.9-r-beta-3android-msm-bonito-4.9-android11
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.c | 2 |
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; |