qcacmn: Accumulate tx and rx airtime consumption stats separately
Accumulate tx and rx airtime consumption stats separately. Change-Id: I1196ec83d94f73ee35a77a935d5820783e239154 CRs-Fixed: 3388165
This commit is contained in:

committed by
Madan Koyyalamudi

parent
c50244f2b8
commit
87cf6b8b07
@@ -274,4 +274,34 @@ cdp_set_params_rssi_dbm_conversion(ol_txrx_soc_handle soc,
|
||||
(soc, params);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef WLAN_TELEMETRY_STATS_SUPPORT
|
||||
/*
|
||||
* cdp_update_pdev_mon_telemetry_airtime_stats() - update telemetry airtime
|
||||
* stats in monitor pdev
|
||||
*
|
||||
*@soc: dp soc handle
|
||||
*@pdev_id: pdev id
|
||||
*
|
||||
* This API is used to update telemetry airtime stats in monitor pdev
|
||||
*
|
||||
* Return: Success if stats are updated, else failure
|
||||
*/
|
||||
static inline QDF_STATUS
|
||||
cdp_update_pdev_mon_telemetry_airtime_stats(ol_txrx_soc_handle soc,
|
||||
uint8_t pdev_id)
|
||||
{
|
||||
if (!soc || !soc->ops) {
|
||||
dp_cdp_debug("Invalid Instance");
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
if (!soc->ops->mon_ops ||
|
||||
!soc->ops->mon_ops->txrx_update_pdev_mon_telemetry_airtime_stats)
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
|
||||
return soc->ops->mon_ops->txrx_update_pdev_mon_telemetry_airtime_stats(
|
||||
soc, pdev_id);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user