From afc30ea9ab674c696b20d2cc2d843fdc5b0a44ff Mon Sep 17 00:00:00 2001 From: gaurank kathpalia Date: Tue, 24 Nov 2020 11:24:10 +0530 Subject: [PATCH] qcacld-3.0: Remove check for DBS HW mode Currently the driver checks whether hw is already in DBS in the function policy_mgr_check_and_set_hw_mode_for_channel_switch and it does not set hw mode if it is already in DBS mode. It can happen that SMM is already requested and is present in serialization and it would change the HW mode from DBS->SMM and if driver starts any vdev on 2.4ghz in HST/HSP which requires the DBS mode for 2.4ghz , the FW would send a vdev start failure. Fix is to remove the check of current hw mode and let DBS be posted to serialization. If hw mode is already in DBS it would return from serialization with E_ALREADY but would ensure that HW mode is always in DBS for a 2.4ghz connection. Change-Id: Ica660058175cb1edc2931dd2d28ee6cdd9bab2f4 CRs-Fixed: 2823238 --- .../cmn_services/policy_mgr/src/wlan_policy_mgr_action.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c index 7a105caecdea..683c2bbe719a 100644 --- a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c +++ b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c @@ -2752,11 +2752,6 @@ QDF_STATUS policy_mgr_check_and_set_hw_mode_for_channel_switch( */ policy_mgr_stop_opportunistic_timer(psoc); - if (policy_mgr_is_current_hwmode_dbs(psoc)) { - policy_mgr_debug("Already in DBS mode"); - return QDF_STATUS_E_ALREADY; - } - if (wlan_reg_freq_to_band(ch_freq) != REG_BAND_2G) return QDF_STATUS_E_NOSUPPORT;