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__ */

View File

@@ -23,4 +23,8 @@
* from southbound interface
*/
#include <wlan_cp_stats_ic_atf_defs.h>
#include <wlan_cp_stats_tgt_api.h>
void tgt_cp_stats_register_rx_ops(struct wlan_lmac_if_rx_ops *rx_ops)
{
}

View File

@@ -31,6 +31,12 @@
#include <wlan_cp_stats_utils_api.h>
#include "../../core/src/wlan_cp_stats_defs.h"
void tgt_cp_stats_register_rx_ops(struct wlan_lmac_if_rx_ops *rx_ops)
{
rx_ops->cp_stats_rx_ops.process_stats_event =
tgt_mc_cp_stats_process_stats_event;
}
static void tgt_mc_cp_stats_extract_tx_power(struct wlan_objmgr_psoc *psoc,
struct stats_event *ev,
bool is_station_stats)