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
This commit is contained in:
Venkata Sharath Chandra Manchala 2017-03-29 19:25:45 -07:00 • committed by snandini
commit bcdfdb14f2
3 changed files with 13 additions and 10 deletions

3
Kbuild
View file

@ -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 ############

View file

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

View file

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