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

parent
d52311a2b1
commit
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
|
||||
|
Reference in New Issue
Block a user