diff --git a/dp/wifi3.0/dp_internal.h b/dp/wifi3.0/dp_internal.h index 3996073d1ec9..5290299483a0 100644 --- a/dp/wifi3.0/dp_internal.h +++ b/dp/wifi3.0/dp_internal.h @@ -204,6 +204,18 @@ while (0) _handle_a->stats._field = _handle_b->stats._field; \ } +#else +#define DP_STATS_INC(_handle, _field, _delta) +#define DP_STATS_INCC(_handle, _field, _delta, _cond) +#define DP_STATS_DEC(_handle, _field, _delta) +#define DP_STATS_UPD(_handle, _field, _delta) +#define DP_STATS_INC_PKT(_handle, _field, _count, _bytes) +#define DP_STATS_INCC_PKT(_handle, _field, _count, _bytes, _cond) +#define DP_STATS_AGGR(_handle_a, _handle_b, _field) +#define DP_STATS_AGGR_PKT(_handle_a, _handle_b, _field) +#endif + +#ifdef ENABLE_DP_HIST_STATS #define DP_HIST_INIT() \ uint32_t num_of_packets[MAX_PDEV_CNT] = {0}; @@ -293,14 +305,6 @@ while (0) #else -#define DP_STATS_INC(_handle, _field, _delta) -#define DP_STATS_INCC(_handle, _field, _delta, _cond) -#define DP_STATS_DEC(_handle, _field, _delta) -#define DP_STATS_UPD(_handle, _field, _delta) -#define DP_STATS_INC_PKT(_handle, _field, _count, _bytes) -#define DP_STATS_INCC_PKT(_handle, _field, _count, _bytes, _cond) -#define DP_STATS_AGGR(_handle_a, _handle_b, _field) -#define DP_STATS_AGGR_PKT(_handle_a, _handle_b, _field) #define DP_HIST_INIT() #define DP_HIST_PACKET_COUNT_INC(_pdev_id) #define DP_TX_HISTOGRAM_UPDATE(_pdev, _p_cntrs)