|
@@ -5980,14 +5980,11 @@ void dp_aggregate_vdev_stats(struct dp_vdev *vdev,
|
|
|
struct dp_peer *peer = NULL;
|
|
|
struct dp_soc *soc = NULL;
|
|
|
|
|
|
- if (!vdev)
|
|
|
+ if (!vdev || !vdev->pdev)
|
|
|
return;
|
|
|
|
|
|
soc = vdev->pdev->soc;
|
|
|
|
|
|
- if (!vdev)
|
|
|
- return;
|
|
|
-
|
|
|
qdf_mem_copy(vdev_stats, &vdev->stats, sizeof(vdev->stats));
|
|
|
|
|
|
qdf_spin_lock_bh(&soc->peer_ref_mutex);
|
|
@@ -5996,9 +5993,6 @@ void dp_aggregate_vdev_stats(struct dp_vdev *vdev,
|
|
|
qdf_spin_unlock_bh(&soc->peer_ref_mutex);
|
|
|
|
|
|
#if defined(FEATURE_PERPKT_INFO) && WDI_EVENT_ENABLE
|
|
|
- if (!vdev->pdev)
|
|
|
- return;
|
|
|
-
|
|
|
dp_wdi_event_handler(WDI_EVENT_UPDATE_DP_STATS, vdev->pdev->soc,
|
|
|
vdev_stats, vdev->vdev_id,
|
|
|
UPDATE_VDEV_STATS, vdev->pdev->pdev_id);
|