qcacmn: Add TxRx Statistics for Lithium datapath
Statistics can be displayed by issuing following commands iwpriv ath0 txrx_fw_stats 3 /*Rx Rate Info*/ iwpriv ath0 txrx_fw_stats 6 /*Tx Rate Info*/ iwpriv ath0 txrx_fw_stats 8 /* print Tx stats */ iwpriv ath0 txrx_fw_stats 27 /*print Rx stats */ To reset the stats: iwpriv ath0 txrx_fw_stats 9 /* clear all stats */ Change-Id: If4be2549f43403e71ef092c23b1cf14b35a2e5d4 CRs-Fixed: 1114641
This commit is contained in:
@@ -37,24 +37,24 @@
|
||||
/* Need to rename the function to reflect the functionality "show" / "display"
|
||||
* WIN -- to figure out whether to change OSIF to converge (not an immediate AI)
|
||||
* */
|
||||
/**
|
||||
* cdp_host_stats_get: cdp call to get host stats
|
||||
* @soc: SOC handle
|
||||
* @req: Requirement type
|
||||
* @type: Host stat type
|
||||
*
|
||||
* return: 0 for Success, Failure returns error message
|
||||
*/
|
||||
static inline int cdp_host_stats_get(ol_txrx_soc_handle soc,
|
||||
struct cdp_vdev *vdev,
|
||||
struct ol_txrx_stats_req *req)
|
||||
struct ol_txrx_stats_req *req, enum cdp_host_txrx_stats type)
|
||||
{
|
||||
if (soc->ops->host_stats_ops->txrx_host_stats_get)
|
||||
return soc->ops->host_stats_ops->txrx_host_stats_get(vdev, req);
|
||||
return soc->ops->host_stats_ops->txrx_host_stats_get(vdev, req,
|
||||
type);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static inline void
|
||||
cdp_host_stats_clr(ol_txrx_soc_handle soc, struct cdp_vdev *vdev)
|
||||
{
|
||||
if (soc->ops->host_stats_ops->txrx_host_stats_clr)
|
||||
return soc->ops->host_stats_ops->txrx_host_stats_clr(vdev);
|
||||
return;
|
||||
}
|
||||
|
||||
static inline void
|
||||
cdp_host_ce_stats(ol_txrx_soc_handle soc, struct cdp_vdev *vdev)
|
||||
{
|
||||
@@ -213,7 +213,6 @@ cdp_reset_lro_stats(ol_txrx_soc_handle soc, struct cdp_vdev *vdev)
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief Parse the stats header and get the payload from the message.
|
||||
*
|
||||
|
Reference in New Issue
Block a user