From 6f5ff952abded02699f4367a0bb562e0991d67f6 Mon Sep 17 00:00:00 2001 From: Naga Date: Thu, 10 May 2018 11:11:41 +0530 Subject: [PATCH] qcacmn: Add implementation of dcs chan stats Add change to provide API to get DCS chan stats structure from within cp stats component Change-Id: Ie67725931f8c9b4870c711e560b06b41854a1af0 CRs-Fixed: 2236328 --- .../dispatcher/inc/wlan_cp_stats_ic_ucfg_api.h | 12 ++++++++++++ .../dispatcher/src/wlan_cp_stats_ic_ucfg_api.c | 8 ++++++++ 2 files changed, 20 insertions(+) diff --git a/umac/cp_stats/dispatcher/inc/wlan_cp_stats_ic_ucfg_api.h b/umac/cp_stats/dispatcher/inc/wlan_cp_stats_ic_ucfg_api.h index 56d186968e43..9ae156a81eee 100644 --- a/umac/cp_stats/dispatcher/inc/wlan_cp_stats_ic_ucfg_api.h +++ b/umac/cp_stats/dispatcher/inc/wlan_cp_stats_ic_ucfg_api.h @@ -27,6 +27,7 @@ #ifdef QCA_SUPPORT_CP_STATS #include #include +#include #include "../../core/src/wlan_cp_stats_defs.h" #ifdef WLAN_ATF_ENABLE #include @@ -660,5 +661,16 @@ wlan_ucfg_get_atf_peer_cp_stats_from_mac(struct wlan_objmgr_vdev *vdev, #endif +/** + * wlan_ucfg_get_dcs_chan_stats() - ucfg API to set dcs chan stats + * @pdev_obj: pointer to pdev object + * @dcs_chan_stats: pointer to dcs chan stats structure + * + * Return: QDF_STATUS - Success or Failure + */ +QDF_STATUS +wlan_ucfg_get_dcs_chan_stats(struct wlan_objmgr_pdev *pdev, + struct pdev_dcs_chan_stats *dcs_chan_stats); + #endif /* QCA_SUPPORT_CP_STATS */ #endif /* __WLAN_CP_STATS_IC_UCFG_API_H__ */ diff --git a/umac/cp_stats/dispatcher/src/wlan_cp_stats_ic_ucfg_api.c b/umac/cp_stats/dispatcher/src/wlan_cp_stats_ic_ucfg_api.c index 4e6dbb9ed3b9..a8a8ca582dbd 100644 --- a/umac/cp_stats/dispatcher/src/wlan_cp_stats_ic_ucfg_api.c +++ b/umac/cp_stats/dispatcher/src/wlan_cp_stats_ic_ucfg_api.c @@ -28,6 +28,7 @@ #include #endif #include +#include #include "../../core/src/wlan_cp_stats_cmn_api_i.h" #include @@ -338,3 +339,10 @@ wlan_ucfg_get_atf_peer_cp_stats_from_mac(struct wlan_objmgr_vdev *vdev, return status; } #endif + +QDF_STATUS +wlan_ucfg_get_dcs_chan_stats(struct wlan_objmgr_pdev *pdev, + struct pdev_dcs_chan_stats *dcs_chan_stats) +{ + return QDF_STATUS_E_INVAL; +}