diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index 860a735bfb..f9f431543e 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -7165,13 +7165,11 @@ int dp_set_pktlog_wifi3(struct dp_pdev *pdev, uint32_t event, */ return 0; } - /* To enable HTT_H2T_MSG_TYPE_PPDU_STATS_CFG in FW - * passing value 0xffff. Once these macros will define - * in htt header file will use proper macros - */ + for (mac_id = 0; mac_id < max_mac_rings; mac_id++) { pdev->pktlog_ppdu_stats = true; - dp_h2t_cfg_stats_msg_send(pdev, 0xffff, + dp_h2t_cfg_stats_msg_send(pdev, + DP_PPDU_TXLITE_STATS_BITMASK_CFG, pdev->pdev_id + mac_id); } break; diff --git a/wlan_cfg/wlan_cfg.h b/wlan_cfg/wlan_cfg.h index fcd9fa5929..4903bc1cd9 100644 --- a/wlan_cfg/wlan_cfg.h +++ b/wlan_cfg/wlan_cfg.h @@ -31,6 +31,10 @@ * 0 means each tx completion is 1 unit */ #define DP_TX_NAPI_BUDGET_DIV_MASK 0 + +/* PPDU Stats Configuration - Configure bitmask for enabling tx ppdu tlv's */ +#define DP_PPDU_TXLITE_STATS_BITMASK_CFG 0x1FFF + #else #define MAX_PDEV_CNT 3 #define WLAN_CFG_INT_NUM_CONTEXTS 4 @@ -39,6 +43,10 @@ * 0xFFFF means each 64K tx frame completions account for 1 unit of NAPI budget */ #define DP_TX_NAPI_BUDGET_DIV_MASK 0xFFFF + +/* PPDU Stats Configuration - Configure bitmask for enabling tx ppdu tlv's */ +#define DP_PPDU_TXLITE_STATS_BITMASK_CFG 0xFFFF + #endif /* Tx configuration */