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
This commit is contained in:
Bapiraju Alla 2020-06-02 21:14:55 +05:30 • committed by nshrivas
commit bfacaa2d0d

View file

@ -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;