qcacmn: CDP interface support for Tx Capture Stats
Add CDP interface structure and ops functions for getting Tx Capture stats. Change-Id: I5b01e2ab21aec566848eee805d6a702da150d328 CRs-Fixed: 3111860
このコミットが含まれているのは:
@@ -846,4 +846,62 @@ cdp_mon_pdev_get_rx_stats(ol_txrx_soc_handle soc, uint8_t pdev_id,
|
||||
|
||||
return soc->ops->mon_ops->get_mon_pdev_rx_stats(soc, pdev_id, stats);
|
||||
}
|
||||
|
||||
#ifdef WLAN_TX_PKT_CAPTURE_ENH
|
||||
/**
|
||||
* cdp_get_peer_tx_capture_stats() - Call to get peer tx capture stats
|
||||
* @soc: soc handle
|
||||
* @vdev_id: id of dp_vdev handle
|
||||
* @peer_mac: peer mac address
|
||||
* @stats: pointer to peer tx capture stats
|
||||
*
|
||||
* return: status Success/Failure
|
||||
*/
|
||||
static inline QDF_STATUS
|
||||
cdp_get_peer_tx_capture_stats(ol_txrx_soc_handle soc,
|
||||
uint8_t vdev_id,
|
||||
uint8_t *peer_mac,
|
||||
struct cdp_peer_tx_capture_stats *stats)
|
||||
{
|
||||
if (!soc || !soc->ops) {
|
||||
dp_cdp_debug("Invalid Instance");
|
||||
QDF_BUG(0);
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
if (!soc->ops->host_stats_ops ||
|
||||
!soc->ops->host_stats_ops->get_peer_tx_capture_stats)
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
|
||||
return soc->ops->host_stats_ops->get_peer_tx_capture_stats(soc, vdev_id,
|
||||
peer_mac,
|
||||
stats);
|
||||
}
|
||||
|
||||
/**
|
||||
* cdp_get_pdev_tx_capture_stats() - Call to get pdev tx capture stats
|
||||
* @soc: soc handle
|
||||
* @pdev_id: id of dp_pdev handle
|
||||
* @stats: pointer to pdev tx capture stats
|
||||
*
|
||||
* return: status Success/Failure
|
||||
*/
|
||||
static inline QDF_STATUS
|
||||
cdp_get_pdev_tx_capture_stats(ol_txrx_soc_handle soc, uint8_t pdev_id,
|
||||
struct cdp_pdev_tx_capture_stats *stats)
|
||||
{
|
||||
if (!soc || !soc->ops) {
|
||||
dp_cdp_debug("Invalid Instance");
|
||||
QDF_BUG(0);
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
if (!soc->ops->host_stats_ops ||
|
||||
!soc->ops->host_stats_ops->get_pdev_tx_capture_stats)
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
|
||||
return soc->ops->host_stats_ops->get_pdev_tx_capture_stats(soc, pdev_id,
|
||||
stats);
|
||||
}
|
||||
#endif /* WLAN_TX_PKT_CAPTURE_ENH */
|
||||
#endif /* _CDP_TXRX_HOST_STATS_H_ */
|
||||
|
新しいイシューから参照
ユーザーをブロックする