From 59d4af5c8561077e465a97a9424bdbdb9096891d Mon Sep 17 00:00:00 2001 From: Ashish Kumar Dhanotiya Date: Thu, 13 Aug 2020 22:49:56 +0530 Subject: [PATCH] qcacld-3.0: Continue the driver load on set band failure Currently driver does the pdev close on set band failure at the time of load which results in driver load failure. To avoid above issue, do not close pdev and continue the driver load smoothly. Change-Id: I0977336b57126b299bd40dd6c18d9009b52454dc CRs-Fixed: 2756716 --- core/hdd/src/wlan_hdd_main.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index a3fb67e46c60..f5ce81269d85 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -2369,10 +2369,13 @@ int hdd_update_tgt_cfg(hdd_handle_t hdd_handle, struct wma_tgt_cfg *cfg) } status = ucfg_reg_set_band(hdd_ctx->pdev, band_capability); - if (QDF_IS_STATUS_ERROR(status)) { + if (QDF_IS_STATUS_ERROR(status)) + /* + * Continue, Do not close the pdev from here as if host fails + * to update band information if cc_list event is not received + * by this time, then also driver load should happen. + */ hdd_err("Failed to update regulatory band info"); - goto pdev_close; - } if (!cds_is_driver_recovering() || cds_is_driver_in_bad_state()) { hdd_ctx->reg.reg_domain = cfg->reg_domain;