diff --git a/core/hdd/inc/wlan_hdd_cfg.h b/core/hdd/inc/wlan_hdd_cfg.h index 98747977b359..8a727a0955ef 100644 --- a/core/hdd/inc/wlan_hdd_cfg.h +++ b/core/hdd/inc/wlan_hdd_cfg.h @@ -5964,6 +5964,7 @@ enum hdd_link_speed_rpt_type { #define CFG_QDF_TRACE_ENABLE_WIFI_POS "qdf_trace_enable_wifi_pos" #define CFG_QDF_TRACE_ENABLE_NAN "qdf_trace_enable_nan" #define CFG_QDF_TRACE_ENABLE_REGULATORY "qdf_trace_enable_regulatory" +#define CFG_QDF_TRACE_ENABLE_CP_STATS "qdf_trace_enable_cp_stats" #define CFG_QDF_TRACE_ENABLE_MIN (0) #define CFG_QDF_TRACE_ENABLE_MAX (0xff) @@ -14639,6 +14640,7 @@ struct hdd_config { uint16_t qdf_trace_enable_wifi_pos; uint16_t qdf_trace_enable_nan; uint16_t qdf_trace_enable_regulatory; + uint16_t qdf_trace_enable_cp_stats; uint16_t nTeleBcnTransListenInterval; uint16_t nTeleBcnMaxListenInterval; diff --git a/core/hdd/src/wlan_hdd_cfg.c b/core/hdd/src/wlan_hdd_cfg.c index d55e9dd85b4d..2a43c07e7374 100644 --- a/core/hdd/src/wlan_hdd_cfg.c +++ b/core/hdd/src/wlan_hdd_cfg.c @@ -1879,6 +1879,13 @@ struct reg_table_entry g_registry_table[] = { CFG_QDF_TRACE_ENABLE_MIN, CFG_QDF_TRACE_ENABLE_MAX), + REG_VARIABLE(CFG_QDF_TRACE_ENABLE_CP_STATS, WLAN_PARAM_Integer, + struct hdd_config, qdf_trace_enable_cp_stats, + VAR_FLAGS_OPTIONAL, + CFG_QDF_TRACE_ENABLE_DEFAULT, + CFG_QDF_TRACE_ENABLE_MIN, + CFG_QDF_TRACE_ENABLE_MAX), + REG_VARIABLE(CFG_TELE_BCN_TRANS_LI_NAME, WLAN_PARAM_Integer, struct hdd_config, nTeleBcnTransListenInterval, VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT, diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 59854565e29b..661b0f3174a9 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -8270,6 +8270,8 @@ static void hdd_set_trace_level_for_each(struct hdd_context *hdd_ctx) hdd_ctx->config->qdf_trace_enable_nan); hdd_qdf_trace_enable(QDF_MODULE_ID_REGULATORY, hdd_ctx->config->qdf_trace_enable_regulatory); + hdd_qdf_trace_enable(QDF_MODULE_ID_CP_STATS, + hdd_ctx->config->qdf_trace_enable_cp_stats); hdd_cfg_print(hdd_ctx); }