qcacmn: Fix CP_STATS rx_ops registration

Fix CP_STATS rx_ops registration in wlan_lmac_if.c, by including
dispatcher header and directly referencing public dispatcher tgt
APIs.

Change-Id: Id42aac8d2a7f1311d4319c77db05eadd75ee4aa0
CRs-Fixed: 2228934
This commit is contained in:
Naveen Rawat
2018-04-21 09:22:23 -07:00
committed by nshrivas
parent 6ecd284e5a
commit 8f4c9087bf
8 changed files with 23 additions and 32 deletions

View File

@@ -23,9 +23,19 @@
*/
#ifndef __WLAN_CP_STATS_TGT_API_H__
#define __WLAN_CP_STATS_TGT_API_H__
#ifdef QCA_SUPPORT_CP_STATS
#include <wlan_lmac_if_def.h>
#include <wlan_objmgr_cmn.h>
#ifdef QCA_SUPPORT_CP_STATS
/**
* tgt_cp_stats_register_rx_ops(): API to register rx ops with lmac
* @rx_ops: rx ops struct
*
* Return: none
*/
void tgt_cp_stats_register_rx_ops(struct wlan_lmac_if_rx_ops *rx_ops);
#else
static inline void tgt_cp_stats_register_rx_ops(
struct wlan_lmac_if_rx_ops *rx_ops) {}
#endif /* QCA_SUPPORT_CP_STATS */
#endif /* __WLAN_CP_STATS_TGT_API_H__ */