Browse Source

qcacld-3.0: Add ini param to control logging for CP_STATS

Add ini param to control logging for CP_STATS.

Change-Id: I8e46ed1935e20d5f636f7c8c1504ad09c1fabf0f
CRs-Fixed: 2210323
Naveen Rawat 7 years ago
parent
commit
3cb779ed91
3 changed files with 11 additions and 0 deletions
  1. 2 0
      core/hdd/inc/wlan_hdd_cfg.h
  2. 7 0
      core/hdd/src/wlan_hdd_cfg.c
  3. 2 0
      core/hdd/src/wlan_hdd_main.c

+ 2 - 0
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;

+ 7 - 0
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,

+ 2 - 0
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);
 }