From bcdfdb14f2fb145fedec2d4acaad13153fb8ede3 Mon Sep 17 00:00:00 2001 From: Venkata Sharath Chandra Manchala Date: Wed, 29 Mar 2017 19:25:45 -0700 Subject: [PATCH] qcacld-3.0: Support for HTT Stats 1. Remove unused variable of type ol_txrx_stats_req passed through cdp_txrx_stats api to avoid compilation break. 2. Add dp_stats file to the Kbuild. This file is used to collect HTT Statistics for Lithium based chipsets. Change-Id: I0252c996d47cc866291d25f35eb9bb9e19073a8b CRs-Fixed: 2050798 --- Kbuild | 3 ++- core/hdd/src/wlan_hdd_hostapd.c | 10 ++++++---- core/hdd/src/wlan_hdd_wext.c | 10 +++++----- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/Kbuild b/Kbuild index eb2dd10b9472..da2587ed7275 100644 --- a/Kbuild +++ b/Kbuild @@ -1052,7 +1052,8 @@ DP_OBJS := $(DP_SRC)/dp_main.o \ $(DP_SRC)/dp_reo.o \ $(DP_SRC)/dp_rx_mon_dest.o \ $(DP_SRC)/dp_rx_mon_status.o \ - $(DP_SRC)/dp_rx_defrag.o + $(DP_SRC)/dp_rx_defrag.o \ + $(DP_SRC)/dp_stats.o endif ############ CFG ############ diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index 1721b9bd333d..91f3580a19f4 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -2733,7 +2733,6 @@ static __iw_softap_setparam(struct net_device *dev, struct cdp_vdev *vdev = NULL; struct cdp_pdev *pdev = NULL; void *soc = NULL; - struct ol_txrx_stats_req req; ENTER_DEV(dev); @@ -2879,11 +2878,14 @@ static __iw_softap_setparam(struct net_device *dev, { ret = cds_get_datapath_handles(&soc, &pdev, &vdev, pHostapdAdapter->sessionId); - if (ret != 0) + if (ret != 0) { + QDF_TRACE(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_ERROR, + "Invalid Handles"); break; + } + hdd_notice("QCSAP_PARAM_SET_TXRX_STATS val %d", set_value); - qdf_mem_zero(&req, sizeof(req)); - ret = cdp_txrx_stats(soc, vdev, &req, set_value); + ret = cdp_txrx_stats(soc, vdev, set_value); break; } diff --git a/core/hdd/src/wlan_hdd_wext.c b/core/hdd/src/wlan_hdd_wext.c index ab0ca494e677..077ea9be28f4 100644 --- a/core/hdd/src/wlan_hdd_wext.c +++ b/core/hdd/src/wlan_hdd_wext.c @@ -7671,7 +7671,6 @@ static int __iw_setint_getnone(struct net_device *dev, int enable_pbm, enable_mp; QDF_STATUS status; void *soc = NULL; - struct ol_txrx_stats_req req; struct cdp_pdev *pdev = NULL; struct cdp_vdev *vdev = NULL; @@ -8432,11 +8431,12 @@ static int __iw_setint_getnone(struct net_device *dev, ret = cds_get_datapath_handles(&soc, &pdev, &vdev, pAdapter->sessionId); - if (ret != 0) + if (ret != 0) { + QDF_TRACE(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_ERROR, + "Invalid handles"); break; - - qdf_mem_zero(&req, sizeof(req)); - ret = cdp_txrx_stats(soc, vdev, &req, set_value); + } + ret = cdp_txrx_stats(soc, vdev, set_value); break; }