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; }