From bfacaa2d0d45aa8a15264990f3d24668c6e52cd5 Mon Sep 17 00:00:00 2001 From: Bapiraju Alla Date: Tue, 2 Jun 2020 21:14:55 +0530 Subject: [PATCH] qcacld-3.0: Update regulatory band capability with FW capability Update band capability of regulatory component with firmware band capability Change-Id: I9916b17dfa279ebecc0f459d4c0b13580578b4b6 CRs-Fixed: 2689885 --- core/hdd/src/wlan_hdd_main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index b0ab644a2118..edee78b3e46f 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -2276,6 +2276,12 @@ int hdd_update_tgt_cfg(hdd_handle_t hdd_handle, struct wma_tgt_cfg *cfg) goto pdev_close; } + status = ucfg_reg_set_band(hdd_ctx->pdev, band_capability); + if (QDF_IS_STATUS_ERROR(status)) { + 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; hdd_ctx->reg.eeprom_rd_ext = cfg->eeprom_rd_ext;