qcacmn: Add os_if implementation of dcs chan stats

Add change to support get API for dcs chan stats from
within cp stats component

Change-Id: I55af5d83389f34c6c7ff9a7f2a7826eb3a9f4a4c
CRs-Fixed: 2247228
This commit is contained in:
Naga
2018-05-03 11:45:20 +05:30
committed by nshrivas
parent 8703c9c98f
commit 54a68b5752
2 changed files with 37 additions and 0 deletions

View File

@@ -32,6 +32,7 @@
#ifdef WLAN_ATF_ENABLE
#include <wlan_cp_stats_ic_atf_defs.h>
#endif
#include <wlan_cp_stats_ic_dcs_defs.h>
/**
* wlan_cfg80211_get_peer_cp_stats() - API to get peer stats object
@@ -93,5 +94,16 @@ int wlan_cfg80211_get_atf_peer_cp_stats_from_mac(
struct atf_peer_cp_stats *atf_cp_stats);
#endif /* WLAN_ATF_ENABLE */
/**
* wlan_cfg80211_get_dcs_pdev_cp_stats() - API to get DCS chan stats
* @pdev_obj: pdev object as input
* @dcs_chan_stats: DCS pdev stats object to populate
*
* Return: 0 on success, negative value on failure
*/
int wlan_cfg80211_get_dcs_pdev_cp_stats(
struct wlan_objmgr_pdev *pdev_obj,
struct pdev_dcs_chan_stats *dcs_chan_stats);
#endif /* QCA_SUPPORT_CP_STATS */
#endif /* __WLAN_CFG80211_IC_CP_STATS_H__ */