qcacmn: Fix scn_stats issue
Move the stats update to per pdev stats update function
Change-Id: I586927cb60eae188ce792fff34c67cde003c3f01
diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c
index 98f0ada..a72baf4 100644
--- a/dp/wifi3.0/dp_main.c
+++ b/dp/wifi3.0/dp_main.c
@@ -4189,6 +4189,7 @@
static inline void dp_aggregate_pdev_stats(struct dp_pdev *pdev)
{
struct dp_vdev *vdev = NULL;
+ struct dp_soc *soc = pdev->soc;
qdf_mem_set(&(pdev->stats.tx), sizeof(pdev->stats.tx), 0x0);
qdf_mem_set(&(pdev->stats.rx), sizeof(pdev->stats.rx), 0x0);
@@ -4243,6 +4244,9 @@
pdev->stats.tx_i.tso.num_seg =
vdev->stats.tx_i.tso.num_seg;
}
+ if (soc->cdp_soc.ol_ops->update_dp_stats)
+ soc->cdp_soc.ol_ops->update_dp_stats(pdev->osif_pdev,
+ &pdev->stats, pdev->pdev_id, UPDATE_PDEV_STATS);
}