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
此提交包含在:
Amir Patel
2019-02-26 21:49:24 +05:30
提交者 nshrivas
父節點 9527e111d0
當前提交 256dcbe737
共有 4 個檔案被更改,包括 129 行新增0 行删除

查看文件

@@ -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.
*