From e7133bec280bb095adfa8b94b8ca982255ffb2e8 Mon Sep 17 00:00:00 2001 From: Zhu Jianmin Date: Thu, 8 Mar 2018 09:54:02 +0800 Subject: qcacld-3.0: Fix ifconfig wlan0 up failed on Rome Rome doesn't support DBS, doesn't support cmd and wmi service WMI_PDEV_SET_MAC_CONFIG_CMDID. so no response event for the cmd, the cmd can't be removed from active list. so next cmd: WMA_ADD_STA_SELF_REQ can't be executed at all, no complete event for sme_open_session, hdd_init_station_mode failed Change-Id: Iec2ef7e77e91f332028904c319d24e1ed134306d CRs-Fixed: 2202262 --- core/hdd/src/wlan_hdd_main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 03deb64f3419..eb94fabec634 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -8170,15 +8170,14 @@ wlan_hdd_update_dbs_scan_and_fw_mode_config(hdd_context_t *hdd_ctx) hdd_err("HDD context is NULL"); return QDF_STATUS_E_FAILURE; } + if (!wma_is_hw_dbs_capable()) + return QDF_STATUS_SUCCESS; cfg.scan_config = 0; cfg.fw_mode_config = 0; cfg.set_dual_mac_cb = cds_soc_set_dual_mac_cfg_cb; - if (!wma_is_dbs_enable()) - channel_select_logic_conc = 0; - else - channel_select_logic_conc = hdd_ctx->config-> + channel_select_logic_conc = hdd_ctx->config-> channel_select_logic_conc; if (hdd_ctx->config->dual_mac_feature_disable != -- cgit v1.2.3