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: