qcacmn: Define CDP Ops for packet capture mode

Define CDP Ops for packet capture mode

Change-Id: If08191f47060210f4340940d01be8eb2cf8cc426
CRs-Fixed: 2528432
This commit is contained in:
Alok Kumar
2019-08-15 20:56:40 +05:30
committato da nshrivas
parent 8e869fff23
commit 3d15ae8780
3 ha cambiato i file con 179 aggiunte e 0 eliminazioni

Vedi File

@@ -756,6 +756,40 @@ struct cdp_mon_ops {
(struct cdp_pdev *pdev, qdf_nbuf_t nbuf);
};
#ifdef WLAN_FEATURE_PKT_CAPTURE
struct cdp_pktcapture_ops {
void (*txrx_pktcapture_set_mode)
(struct cdp_soc_t *soc,
uint8_t pdev_id,
uint8_t mode);
uint8_t (*txrx_pktcapture_get_mode)
(struct cdp_soc_t *soc,
uint8_t pdev_id);
QDF_STATUS (*txrx_pktcapture_cb_register)
(struct cdp_soc_t *soc,
uint8_t pdev_id,
void *context,
QDF_STATUS(cb)(void *, qdf_nbuf_t));
QDF_STATUS (*txrx_pktcapture_cb_deregister)
(struct cdp_soc_t *soc,
uint8_t pdev_id);
QDF_STATUS (*txrx_pktcapture_mgmtpkt_process)
(struct cdp_soc_t *soc,
uint8_t pdev_id,
struct mon_rx_status *txrx_status,
qdf_nbuf_t nbuf, uint8_t status);
void (*txrx_pktcapture_record_channel)
(struct cdp_soc_t *soc,
uint8_t pdev_id,
int chan_no);
};
#endif /* #ifdef WLAN_FEATURE_PKT_CAPTURE */
struct cdp_host_stats_ops {
int (*txrx_host_stats_get)(struct cdp_vdev *vdev,
struct ol_txrx_stats_req *req);
@@ -1543,5 +1577,9 @@ struct cdp_ops {
#ifdef RECEIVE_OFFLOAD
struct cdp_rx_offld_ops *rx_offld_ops;
#endif
#ifdef WLAN_FEATURE_PKT_CAPTURE
struct cdp_pktcapture_ops *pktcapture_ops;
#endif
};
#endif