qcacmn: Replace interface of dp stats updation to upper layer
Replace ol_if interface with WDI for dp stats updation to upper layer.
Define a new CDP API to get radiostats.
CRs-Fixed: 2326789
Change-Id: Ieaee2fe18fc9a0ad0e259e36f59529fe9bc4e208
diff --git a/dp/wifi3.0/dp_rx_mon_status.c b/dp/wifi3.0/dp_rx_mon_status.c
index 1de74a1..8215ff4 100644
--- a/dp/wifi3.0/dp_rx_mon_status.c
+++ b/dp/wifi3.0/dp_rx_mon_status.c
@@ -248,12 +248,11 @@
dp_rx_rate_stats_update(peer, ppdu);
- if (soc->cdp_soc.ol_ops->update_dp_stats) {
- soc->cdp_soc.ol_ops->update_dp_stats(pdev->ctrl_pdev,
- &peer->stats, ppdu->peer_id,
- UPDATE_PEER_STATS);
-
- }
+#if defined(FEATURE_PERPKT_INFO) && WDI_EVENT_ENABLE
+ dp_wdi_event_handler(WDI_EVENT_UPDATE_DP_STATS, pdev->soc,
+ &peer->stats, ppdu->peer_id,
+ UPDATE_PEER_STATS, pdev->pdev_id);
+#endif
}
#endif