From 4b6fdd1cce93c4308eed2bf8908769e91d3ebd91 Mon Sep 17 00:00:00 2001 From: Rachit Kankane Date: Thu, 10 Jan 2019 20:51:16 +0530 Subject: [PATCH] qcacld-3.0: Read hw_config_type from correct mac-phy config In function wma_update_hw_mode_list, hw_config_type should be read from the same mac-phy config array to check if next array could be for used for MAC1 SS_bw settings bas on hw_config_type. Change-Id: If787b127b5cf0f811344b3322ba84c2956543e14 CRs-Fixed: 2381784 --- core/wma/src/wma_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index 3f12cebcf759..1a77c2c9312e 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -6346,6 +6346,7 @@ static void wma_print_mac_phy_capabilities(struct wlan_psoc_host_mac_phy_caps WMA_LOGD("\t: cap for hw_mode_id[%d]", cap->hw_mode_id); WMA_LOGD("\t: pdev_id[%d]", cap->pdev_id); WMA_LOGD("\t: phy_id[%d]", cap->phy_id); + WMA_LOGD("\t: hw_mode_config_type[%d]", cap->hw_mode_config_type); WMA_LOGD("\t: supports_11b[%d]", cap->supports_11b); WMA_LOGD("\t: supports_11g[%d]", cap->supports_11g); WMA_LOGD("\t: supports_11a[%d]", cap->supports_11a); @@ -6594,7 +6595,7 @@ static QDF_STATUS wma_update_hw_mode_list(t_wma_handle *wma_handle, /* Update for MAC0 */ tmp = &mac_phy_cap[j++]; wma_get_hw_mode_params(tmp, &mac0_ss_bw_info); - hw_config_type = mac_phy_cap[j].hw_mode_config_type; + hw_config_type = tmp->hw_mode_config_type; dbs_mode = HW_MODE_DBS_NONE; sbs_mode = HW_MODE_SBS_NONE; mac1_ss_bw_info.mac_tx_stream = 0;