mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
qcacmn: Add WDI event for tx completion for packet capture mode
Add WDI event and call wdi event handler for tx completion for
packet capture mode.
Change-Id: I99225dda53effc6ab5a80a32aa8aa082543855b2
CRs-Fixed: 2844724
This commit is contained in:
parent
296d1e4083
commit
82bed7be73
3 changed files with 36 additions and 0 deletions
|
|
@ -363,6 +363,7 @@ enum WDI_EVENT {
|
|||
WDI_EVENT_RX_MPDU,
|
||||
WDI_EVENT_HMWDS_AST_ADD_STATUS,
|
||||
WDI_EVENT_PEER_QOS_STATS,
|
||||
WDI_EVENT_PKT_CAPTURE_TX_DATA,
|
||||
/* End of new event items */
|
||||
WDI_EVENT_LAST
|
||||
};
|
||||
|
|
|
|||
|
|
@ -4015,6 +4015,25 @@ static inline void dp_tx_sojourn_stats_process(struct dp_pdev *pdev,
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef WLAN_FEATURE_PKT_CAPTURE_LITHIUM
|
||||
/**
|
||||
* dp_send_completion_to_pkt_capture() - send tx completion to packet capture
|
||||
* @soc: dp_soc handle
|
||||
* @desc: Tx Descriptor
|
||||
* @ts: HAL Tx completion descriptor contents
|
||||
*
|
||||
* This function is used to send tx completion to packet capture
|
||||
*/
|
||||
void dp_send_completion_to_pkt_capture(struct dp_soc *soc,
|
||||
struct dp_tx_desc_s *desc,
|
||||
struct hal_tx_completion_status *ts)
|
||||
{
|
||||
dp_wdi_event_handler(WDI_EVENT_PKT_CAPTURE_TX_DATA, soc,
|
||||
desc, ts->peer_id,
|
||||
WDI_NO_VAL, desc->pdev->pdev_id);
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* dp_tx_comp_process_desc() - Process tx descriptor and free associated nbuf
|
||||
* @soc: DP Soc handle
|
||||
|
|
@ -4038,6 +4057,9 @@ dp_tx_comp_process_desc(struct dp_soc *soc,
|
|||
time_latency = (qdf_ktime_to_ms(qdf_ktime_real_get()) -
|
||||
desc->timestamp);
|
||||
}
|
||||
|
||||
dp_send_completion_to_pkt_capture(soc, desc, ts);
|
||||
|
||||
if (!(desc->msdu_ext_desc)) {
|
||||
if (QDF_STATUS_SUCCESS ==
|
||||
dp_tx_add_to_comp_queue(soc, desc, ts, peer)) {
|
||||
|
|
|
|||
|
|
@ -527,4 +527,17 @@ QDF_STATUS dp_peer_set_tx_capture_enabled(struct dp_pdev *pdev,
|
|||
#endif
|
||||
void dp_tx_desc_flush(struct dp_pdev *pdev, struct dp_vdev *vdev,
|
||||
bool force_free);
|
||||
|
||||
#ifdef WLAN_FEATURE_PKT_CAPTURE_LITHIUM
|
||||
void dp_send_completion_to_pkt_capture(struct dp_soc *soc,
|
||||
struct dp_tx_desc_s *desc,
|
||||
struct hal_tx_completion_status *ts);
|
||||
#else
|
||||
static inline void
|
||||
dp_send_completion_to_pkt_capture(struct dp_soc *soc,
|
||||
struct dp_tx_desc_s *desc,
|
||||
struct hal_tx_completion_status *ts)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue