qcacmn: Add support for full pktlog
1. Enable CE5 and allow it to service
pktlog messages from the firmware.
2. Register full pktlog callback handlers
for handling sw_events and full tx pktlog.
Change-Id: Ifb70ac0993f2402201f88758845f730cf677b1a0
CRs-Fixed: 2388906
diff --git a/dp/wifi3.0/dp_rx_mon_status.c b/dp/wifi3.0/dp_rx_mon_status.c
index 10a1824..a72dacc 100644
--- a/dp/wifi3.0/dp_rx_mon_status.c
+++ b/dp/wifi3.0/dp_rx_mon_status.c
@@ -518,6 +518,7 @@
QDF_STATUS m_copy_status = QDF_STATUS_SUCCESS;
struct cdp_pdev_mon_stats *rx_mon_stats;
int smart_mesh_status;
+ enum WDI_EVENT pktlog_mode = WDI_NO_VAL;
ppdu_info = &pdev->ppdu_info;
rx_mon_stats = &pdev->rx_mon_stats;
@@ -553,9 +554,16 @@
dp_rx_process_peer_based_pktlog(soc, ppdu_info,
status_nbuf, mac_id);
} else {
- dp_wdi_event_handler(WDI_EVENT_RX_DESC, soc,
- status_nbuf, HTT_INVALID_PEER,
- WDI_NO_VAL, mac_id);
+ if (pdev->rx_pktlog_mode == DP_RX_PKTLOG_FULL)
+ pktlog_mode = WDI_EVENT_RX_DESC;
+ else if (pdev->rx_pktlog_mode == DP_RX_PKTLOG_LITE)
+ pktlog_mode = WDI_EVENT_LITE_RX;
+
+ if (pktlog_mode != WDI_NO_VAL)
+ dp_wdi_event_handler(pktlog_mode, soc,
+ status_nbuf,
+ HTT_INVALID_PEER,
+ WDI_NO_VAL, mac_id);
}
/* smart monitor vap and m_copy cannot co-exist */