qcacmn: Add CDP support for RDK peer statistics framework
Add CDP APIs for: a. To get/set rdk stats context into soc b. To set rdk stats flag into soc c. To flush rdk stats Change-Id: I74e35f5fa244d6d38f46a4f64ebbad8a630589bd
此提交包含在:
@@ -672,6 +672,30 @@ cdp_host_get_radio_stats(ol_txrx_soc_handle soc,
|
||||
buf);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief confgure rate stats at soc
|
||||
*
|
||||
* @param soc - opaque soc handle
|
||||
* @param vap - capabilities
|
||||
* @return - void
|
||||
*/
|
||||
static inline void
|
||||
cdp_soc_configure_rate_stats(ol_txrx_soc_handle soc, uint8_t val)
|
||||
{
|
||||
if (!soc || !soc->ops) {
|
||||
QDF_TRACE(QDF_MODULE_ID_CDP, QDF_TRACE_LEVEL_DEBUG,
|
||||
"%s: Invalid Instance", __func__);
|
||||
QDF_BUG(0);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!soc->ops->host_stats_ops ||
|
||||
!soc->ops->host_stats_ops->configure_rate_stats)
|
||||
return;
|
||||
|
||||
return soc->ops->host_stats_ops->configure_rate_stats(soc, val);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Parse the stats header and get the payload from the message.
|
||||
*
|
||||
|
新增問題並參考
封鎖使用者