qcacld-3.0: Process Rx data packet for pkt capture mode

Process Rx data packets and post to the mon thread for
packet capture mode

Change-Id: Id8ae54677615c27d61c6def1a521c509f602863b
CRs-Fixed: 2618941
This commit is contained in:
Vulupala Shashank Reddy
2020-01-29 11:16:39 +05:30
committed by nshrivas
parent 5a3b87db75
commit a2deef8c83
14 changed files with 683 additions and 21 deletions

View File

@@ -28,6 +28,8 @@
#include <qdf_types.h>
#include "wlan_pkt_capture_objmgr.h"
#include "wlan_pkt_capture_public_structs.h"
#include "wlan_pkt_capture_mon_thread.h"
#include <htt_types.h>
#ifdef WLAN_FEATURE_PKT_CAPTURE
/**
@@ -155,6 +157,38 @@ ucfg_pkt_capture_mgmt_tx_completion(
* Return: 0 on success, -EINVAL on failure
*/
int ucfg_pkt_capture_enable_ops(struct wlan_objmgr_vdev *vdev);
/**
* ucfg_pkt_capture_rx_msdu_process() - process data rx pkts
* @bssid: bssid
* @head_msdu: pointer to head msdu
* @vdev_id: vdev_id
* @pdev: pdev handle
*
* Return: none
*/
void ucfg_pkt_capture_rx_msdu_process(
uint8_t *bssid,
qdf_nbuf_t head_msdu,
uint8_t vdev_id, htt_pdev_handle pdev);
/**
* ucfg_pkt_capture_rx_offloaded_pkt() - check offloaded data pkt or not
* @rx_ind_msg: rx_ind_msg
*
* Return: 0 not an offload pkt
* 1 offload pkt
*/
bool ucfg_pkt_capture_rx_offloaded_pkt(qdf_nbuf_t rx_ind_msg);
/**
* ucfg_pkt_capture_rx_drop_offload_pkt() - drop offload packets
* @head_msdu: pointer to head msdu
*
* Return: none
*/
void ucfg_pkt_capture_rx_drop_offload_pkt(qdf_nbuf_t head_msdu);
#else
static inline
QDF_STATUS ucfg_pkt_capture_init(void)
@@ -226,5 +260,24 @@ ucfg_pkt_capture_mgmt_tx_completion(struct wlan_objmgr_pdev *pdev,
struct mgmt_offload_event_params *params)
{
}
static inline void
ucfg_pkt_capture_rx_msdu_process(
uint8_t *bssid,
qdf_nbuf_t head_msdu,
uint8_t vdev_id, htt_pdev_handle pdev)
{
}
static inline bool
ucfg_pkt_capture_rx_offloaded_pkt(qdf_nbuf_t rx_ind_msg)
{
return false;
}
static inline void
ucfg_pkt_capture_rx_drop_offload_pkt(qdf_nbuf_t head_msdu)
{
}
#endif /* WLAN_FEATURE_PKT_CAPTURE */
#endif /* _WLAN_PKT_CAPTURE_UCFG_API_H_ */

View File

@@ -26,6 +26,7 @@
#include "wlan_pkt_capture_mon_thread.h"
#include "wlan_pkt_capture_mgmt_txrx.h"
#include "target_if_pkt_capture.h"
#include "wlan_pkt_capture_data_txrx.h"
enum pkt_capture_mode ucfg_pkt_capture_get_mode(struct wlan_objmgr_psoc *psoc)
{
@@ -271,3 +272,22 @@ int ucfg_pkt_capture_enable_ops(struct wlan_objmgr_vdev *vdev)
return 0;
}
void ucfg_pkt_capture_rx_msdu_process(
uint8_t *bssid,
qdf_nbuf_t head_msdu,
uint8_t vdev_id, htt_pdev_handle pdev)
{
pkt_capture_msdu_process_pkts(bssid, head_msdu,
vdev_id, pdev);
}
bool ucfg_pkt_capture_rx_offloaded_pkt(qdf_nbuf_t rx_ind_msg)
{
return pkt_capture_rx_in_order_offloaded_pkt(rx_ind_msg);
}
void ucfg_pkt_capture_rx_drop_offload_pkt(qdf_nbuf_t head_msdu)
{
pkt_capture_rx_in_order_drop_offload_pkt(head_msdu);
}