Browse Source

qcacld-3.0: Enable DFS SAP on none-dbs hardware

In DBS-disabled scenario start DFS AP will be blocked because
function policy_mgr_update_dfs_master_dynamic_enabled return
false when sta_sap_scc_on_dfs_chnl equals 1.
Firmware will limit scan channel in 2 GHz when DFS AP plus STA.
Hence it is reasonable to allow this policy in Non-DBS mode

Change-Id: I31cada8caf74694a228cad215893cf442f1a5564
CRs-Fixed: 3253870
Ming Jiang 2 years ago
parent
commit
baa85e3dba
1 changed files with 0 additions and 13 deletions
  1. 0 13
      core/wma/src/wma_main.c

+ 0 - 13
core/wma/src/wma_main.c

@@ -6801,7 +6801,6 @@ static void wma_update_hw_mode_config(tp_wma_handle wma_handle,
 				      struct target_psoc_info *tgt_hdl)
 {
 	uint32_t conc_scan_config_bits, fw_config_bits;
-	uint8_t sta_sap_scc_on_dfs_chnl;
 
 	fw_config_bits = target_if_get_fw_config_bits(tgt_hdl);
 	conc_scan_config_bits = target_if_get_conc_scan_config_bits(tgt_hdl);
@@ -6818,18 +6817,6 @@ static void wma_update_hw_mode_config(tp_wma_handle wma_handle,
 	}
 	wma_init_scan_fw_mode_config(wma_handle->psoc, conc_scan_config_bits,
 				     fw_config_bits);
-
-	policy_mgr_get_sta_sap_scc_on_dfs_chnl(wma_handle->psoc,
-					       &sta_sap_scc_on_dfs_chnl);
-
-	/*
-	 * For non-dbs HW, disallow sta+sap on DFS channel as if SAP comes
-	 * on DFS master mode enable (sta_sap_scc_on_dfs_chnl = 2), scan will
-	 * be disabled and STA cannot connect to any other channel
-	 */
-	if (!policy_mgr_is_hw_dbs_capable(wma_handle->psoc) &&
-	    sta_sap_scc_on_dfs_chnl == 2)
-		policy_mgr_set_sta_sap_scc_on_dfs_chnl(wma_handle->psoc, 1);
 }
 
 int wma_rx_service_ready_ext2_event(void *handle, uint8_t *ev, uint32_t len)