From 0ad4fdafb19f45e309902b7316f5df721c20cf30 Mon Sep 17 00:00:00 2001 From: Venkata Sharath Chandra Manchala Date: Thu, 1 Mar 2018 13:45:46 -0800 Subject: [PATCH] qcacmn: Disable TLV for PKTLOG LITE Disable HTT_PPDU_STATS_TX_MGMTCTRL_PAYLOAD_TLV for Pktlog Tx path for MCL only as it is currently a requirement for WIN to keep it enabled. Change-Id: If162384783139613f1bdad1d3820288a7887286d CRs-Fixed: 2182626 --- dp/wifi3.0/dp_main.c | 8 +++----- wlan_cfg/wlan_cfg.h | 8 ++++++++ 2 files changed, 11 insertions(+), 5 deletions(-) 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 */