qcacmn: Add support for local packet capture stop
Add support for local packet capture stop. Change-Id: Ib12574f5b418ea009ec35ef85e170bc8c592c86f CRs-Fixed: 3415812
This commit is contained in:

committed by
Madan Koyyalamudi

orang tua
d52311a2b1
melakukan
13554f0cdc
@@ -332,6 +332,30 @@ QDF_STATUS cdp_start_local_pkt_capture(ol_txrx_soc_handle soc,
|
||||
return soc->ops->mon_ops->start_local_pkt_capture(soc, pdev_id, filter);
|
||||
}
|
||||
|
||||
/**
|
||||
* cdp_stop_local_pkt_capture() - stop local pkt capture
|
||||
* @soc: opaque soc handle
|
||||
* @pdev_id: pdev_id
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS if success
|
||||
* QDF_STATUS_E_FAILURE if error
|
||||
*/
|
||||
static inline
|
||||
QDF_STATUS cdp_stop_local_pkt_capture(ol_txrx_soc_handle soc, uint8_t pdev_id)
|
||||
{
|
||||
if (!soc || !soc->ops) {
|
||||
dp_cdp_debug("Invalid Instance");
|
||||
QDF_BUG(0);
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
if (!soc->ops->mon_ops ||
|
||||
!soc->ops->mon_ops->stop_local_pkt_capture)
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
|
||||
return soc->ops->mon_ops->stop_local_pkt_capture(soc, pdev_id);
|
||||
}
|
||||
|
||||
#else
|
||||
static inline
|
||||
QDF_STATUS cdp_start_local_pkt_capture(ol_txrx_soc_handle soc,
|
||||
@@ -341,6 +365,12 @@ QDF_STATUS cdp_start_local_pkt_capture(ol_txrx_soc_handle soc,
|
||||
return QDF_STATUS_E_NOSUPPORT;
|
||||
}
|
||||
|
||||
static inline
|
||||
QDF_STATUS cdp_stop_local_pkt_capture(ol_txrx_soc_handle soc, uint8_t pdev_id)
|
||||
{
|
||||
return QDF_STATUS_E_NOSUPPORT;
|
||||
}
|
||||
|
||||
#endif /* WLAN_FEATURE_LOCAL_PKT_CAPTURE */
|
||||
|
||||
#endif
|
||||
|
@@ -994,6 +994,7 @@ struct cdp_me_ops {
|
||||
* @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
|
||||
* @stop_local_pkt_capture: stop local packet capture
|
||||
*/
|
||||
struct cdp_mon_ops {
|
||||
|
||||
@@ -1106,6 +1107,9 @@ struct cdp_mon_ops {
|
||||
QDF_STATUS (*start_local_pkt_capture)
|
||||
(struct cdp_soc_t *soc, uint8_t pdev_id,
|
||||
struct cdp_monitor_filter *filter);
|
||||
|
||||
QDF_STATUS (*stop_local_pkt_capture)(struct cdp_soc_t *soc,
|
||||
uint8_t pdev_id);
|
||||
#endif
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user