From 2c947254849f7e217d5b1bc6725cfc1c6ec9b8ff Mon Sep 17 00:00:00 2001 From: Bapiraju Alla Date: Fri, 2 Apr 2021 14:56:34 +0530 Subject: [PATCH] qcacld-3.0: Don't configure FW dbg log levels for every vdev create Currently FW dbg log levels are configured for every vdev creation. But this is pdev level configuration and doesn't required to configure for every vdev. Because of this WMI commands are getting flooded. To avoid this, configure FW debug log levels only for first vdev creation. Change-Id: Ie395c1a7b0756a08ad7948997531c6920d83ae0b CRs-fixed: 2913901 --- core/hdd/inc/wlan_hdd_main.h | 1 + core/hdd/src/wlan_hdd_main.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h index 5e795c4bd19e..3dac85604827 100644 --- a/core/hdd/inc/wlan_hdd_main.h +++ b/core/hdd/inc/wlan_hdd_main.h @@ -2196,6 +2196,7 @@ struct hdd_context { bool is_regulatory_update_in_progress; qdf_event_t regulatory_update_event; qdf_mutex_t regulatory_status_lock; + bool is_fw_dbg_log_levels_configured; }; /** diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 9bcc5d04d938..56323ed085e5 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -6499,7 +6499,10 @@ int hdd_set_fw_params(struct hdd_adapter *adapter) goto error; } - hdd_set_fw_log_params(hdd_ctx, adapter); + if (!hdd_ctx->is_fw_dbg_log_levels_configured) { + hdd_set_fw_log_params(hdd_ctx, adapter); + hdd_ctx->is_fw_dbg_log_levels_configured = true; + } ret = hdd_send_coex_config_params(hdd_ctx, adapter); if (ret) { @@ -14514,6 +14517,7 @@ int hdd_wlan_stop_modules(struct hdd_context *hdd_ctx, bool ftm_mode) hdd_ctx->imps_enabled = false; hdd_ctx->is_dual_mac_cfg_updated = false; hdd_ctx->driver_status = DRIVER_MODULES_CLOSED; + hdd_ctx->is_fw_dbg_log_levels_configured = false; hdd_debug("Wlan transitioned (now CLOSED)"); done: