qcacmn: Update the vdev_id in the vdev_chain_rssi stats

In tgt layer, rssi_stats are copied by comparing the vdev id
filled in the target layer and last reqested stats vdev id.
But in target layer api, target_if_cp_stats_extract_vdev_chain_rssi_stats
vdev id is not filled and that can lead to wrong stats in the upper
layers.

Update vdev id in the rssi stats.

Change-Id: I6a8bd032152b43b90ffd4acfc760e218bf4bba5b
CRs-Fixed: 2530148
This commit is contained in:
Bala Venkatesh
2019-09-26 18:11:34 +05:30
committed by nshrivas
parent 20bc724ca1
commit 00a0c37e87
2 changed files with 3 additions and 0 deletions

View File

@@ -324,6 +324,7 @@ static QDF_STATUS target_if_cp_stats_extract_vdev_chain_rssi_stats(
&rssi_stats);
if (QDF_IS_STATUS_ERROR(status))
continue;
ev->vdev_chain_rssi[i].vdev_id = rssi_stats.vdev_id;
for (j = 0; j < MAX_NUM_CHAINS; j++) {
dat_snr = rssi_stats.rssi_avg_data[j];