qcacmn: Add support for local packet capture start

Add support for local packet capture start and relevant changes.

Change-Id: I709e41e0be09cf73e93694efc59bfefbf51fe359
CRs-Fixed: 3415788
This commit is contained in:
Srinivas Girigowda
2023-03-06 20:04:39 -08:00
کامیت شده توسط Madan Koyyalamudi
والد 980d883f07
کامیت 5d8e550bb7
25فایلهای تغییر یافته به همراه874 افزوده شده و 108 حذف شده

مشاهده پرونده

@@ -304,4 +304,43 @@ cdp_update_pdev_mon_telemetry_airtime_stats(ol_txrx_soc_handle soc,
soc, pdev_id);
}
#endif
#ifdef WLAN_FEATURE_LOCAL_PKT_CAPTURE
/**
* cdp_start_local_pkt_capture() - start local pkt capture
* @soc: opaque soc handle
* @pdev_id: pdev id
* @filter: monitor filter config
*
* Return: QDF_STATUS_SUCCESS if success
* QDF_STATUS_E_FAILURE if error
*/
static inline
QDF_STATUS cdp_start_local_pkt_capture(ol_txrx_soc_handle soc,
uint8_t pdev_id,
struct cdp_monitor_filter *filter)
{
if (!soc || !soc->ops) {
dp_cdp_debug("Invalid Instance");
return QDF_STATUS_E_FAILURE;
}
if (!soc->ops->mon_ops ||
!soc->ops->mon_ops->start_local_pkt_capture)
return QDF_STATUS_E_FAILURE;
return soc->ops->mon_ops->start_local_pkt_capture(soc, pdev_id, filter);
}
#else
static inline
QDF_STATUS cdp_start_local_pkt_capture(ol_txrx_soc_handle soc,
uint8_t pdev_id,
struct cdp_monitor_filter *filter)
{
return QDF_STATUS_E_NOSUPPORT;
}
#endif /* WLAN_FEATURE_LOCAL_PKT_CAPTURE */
#endif

مشاهده پرونده

@@ -993,6 +993,7 @@ struct cdp_me_ops {
* stats in monitor pdev
* @txrx_cfr_filter: Handler to configure host rx monitor status ring
* @txrx_update_mon_mac_filter: Handler to configure mon mac filter
* @start_local_pkt_capture: start local packet capture
*/
struct cdp_mon_ops {
@@ -1101,6 +1102,11 @@ struct cdp_mon_ops {
QDF_STATUS (*txrx_update_mon_mac_filter)(struct cdp_soc_t *soc,
uint8_t vdev_id,
uint32_t cmd);
#ifdef WLAN_FEATURE_LOCAL_PKT_CAPTURE
QDF_STATUS (*start_local_pkt_capture)
(struct cdp_soc_t *soc, uint8_t pdev_id,
struct cdp_monitor_filter *filter);
#endif
};
/**