qcacmn: add cdp wrapper for mobile device compile

add cdp wrapper for mobile device data path compile

Change-Id: I05a6c58056f8884915580c074efa81a5a28f71be
CRs-fixed: 1075597
这个提交包含在:
Leo Chang
2016-09-27 17:00:52 -07:00
提交者 qcabuildsw
父节点 870abdada3
当前提交 db6358c42f
修改 19 个文件,包含 2666 行新增462 行删除

查看文件

@@ -31,9 +31,31 @@
*/
#ifndef _CDP_TXRX_STATS_H_
#define _CDP_TXRX_STATS_H_
#include <cdp_txrx_ops.h>
void ol_txrx_display_stats(uint16_t bitmap);
void ol_txrx_clear_stats(uint16_t bitmap);
int ol_txrx_stats(uint8_t vdev_id, char *buffer, unsigned buf_len);
static inline void
cdp_display_stats(ol_txrx_soc_handle soc, uint16_t bitmap)
{
if (soc->ops->mob_stats_ops->display_stats)
return soc->ops->mob_stats_ops->display_stats(bitmap);
return;
}
static inline void
cdp_clear_stats(ol_txrx_soc_handle soc, uint16_t bitmap)
{
if (soc->ops->mob_stats_ops->clear_stats)
return soc->ops->mob_stats_ops->clear_stats(bitmap);
return;
}
static inline int
cdp_stats(ol_txrx_soc_handle soc, uint8_t vdev_id, char *buffer,
unsigned buf_len)
{
if (soc->ops->mob_stats_ops->stats)
return soc->ops->mob_stats_ops->stats(vdev_id, buffer, buf_len);
return 0;
}
#endif /* _CDP_TXRX_STATS_H_ */