From 1bb77499c5928e44d6aa0512903865908be03700 Mon Sep 17 00:00:00 2001 From: Abhishek Singh Date: Fri, 11 Oct 2019 11:33:23 +0530 Subject: [PATCH] qcacld-3.0: Remove duplicate logic to move to SMM from STA connect In csr_roam_connect, driver check and move to DBS before the connect is requested if required and once connection is completed, it check if SMM can be achieved depending on the channel it connected to or if it failed to connect. Thus there is no need to check before connection is completed if SMM is required as driver is not aware of the channel in which STA will end up connected. Thus remove the duplicate logic to move to SMM from STA connect. Change-Id: I0d069fba3c47dec78601a0f3529fde381d4936ed CRs-Fixed: 2543601 --- core/hdd/src/wlan_hdd_cfg80211.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 30d551cf5b32..9ba2835eff8c 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -17738,7 +17738,6 @@ static int wlan_hdd_cfg80211_connect_start(struct hdd_adapter *adapter, struct csr_roam_profile *roam_profile; enum csr_akm_type rsn_auth_type; struct sme_config_params *sme_config; - uint8_t channel = 0; mac_handle_t mac_handle; uint8_t wmm_mode = 0; uint8_t value = 0; @@ -18078,20 +18077,6 @@ static int wlan_hdd_cfg80211_connect_start(struct hdd_adapter *adapter, roam_profile->ChannelInfo.freq_list = NULL; roam_profile->ChannelInfo.numOfChannels = 0; - - if ((QDF_STA_MODE == adapter->device_mode) - && policy_mgr_is_current_hwmode_dbs(hdd_ctx->psoc) - && !policy_mgr_is_hw_dbs_2x2_capable( - hdd_ctx->psoc)) { - policy_mgr_get_channel_from_scan_result( - hdd_ctx->psoc, - roam_profile, &channel); - hdd_info("Move to single MAC mode(optimization) if applicable"); - if (channel) - policy_mgr_checkn_update_hw_mode_single_mac_mode( - hdd_ctx->psoc, channel); - } - } else { hdd_err("No valid Roam profile"); status = -EINVAL;