From 40e89f106083ae278bad794ae8793aeddac8f173 Mon Sep 17 00:00:00 2001 From: sheenam monga Date: Mon, 14 Oct 2019 16:24:26 +0530 Subject: [PATCH] qcacld-3.0: Update correct band capability to OEM In case of lowi, Supported bands are populated from psoc->soc_nif.user_config.band_capability which is same as that of ini file and not the intersected band support. In function wifi_pos_populate_caps caps->supported_bands is populated from psoc->soc_nif.user_config.band_capability which may not be supported by firmware. Fix is to update psoc->soc_nif.user_config.band_capability with the intersected immediately after fetching intersected band support to avoid incompatibilty. Change-Id: I4771e3aff227d29916dafd70726daa9f0c87fef8 CRs-Fixed: 2538590 --- core/hdd/src/wlan_hdd_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 8b7f26fc065e..f49843883e5f 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -2071,6 +2071,7 @@ int hdd_update_tgt_cfg(hdd_handle_t hdd_handle, struct wma_tgt_cfg *cfg) } hdd_ctx->curr_band = band_capability; + hdd_ctx->psoc->soc_nif.user_config.band_capability = hdd_ctx->curr_band; status = wlan_hdd_update_wiphy_supported_band(hdd_ctx); if (QDF_IS_STATUS_ERROR(status)) {