qcacmn: Allow SAP to come up on DFS channel in SCC mode

Allow SAP to come up on DFS channel in STA+SAP concurrency mode
only when g_sta_sap_scc_on_dfs_chan enabled in ini file and also
disable chan_switch_hostapd_rate_enabled when force SCC is enabled.

CRs-Fixed: 2147032
Change-Id: Id1333a49d0538eb4ccfaf3c8498e9ca06671de02
diff --git a/src/wlan_policy_mgr_action.c b/src/wlan_policy_mgr_action.c
index a4e0886..607d1b0 100644
--- a/src/wlan_policy_mgr_action.c
+++ b/src/wlan_policy_mgr_action.c
@@ -747,13 +747,15 @@
 		return false;
 	}
 
-	if (wlan_reg_is_dfs_ch(pm_ctx->pdev, sta_channel) ||
+	if ((wlan_reg_is_dfs_ch(pm_ctx->pdev, sta_channel) &&
+		(!policy_mgr_is_sta_sap_scc_allowed_on_dfs_chan(psoc))) ||
 		wlan_reg_is_passive_or_disable_ch(pm_ctx->pdev, sta_channel) ||
-		!policy_mgr_is_safe_channel(psoc, sta_channel))
+		!policy_mgr_is_safe_channel(psoc, sta_channel)) {
 		if (policy_mgr_is_hw_dbs_capable(psoc))
 			return true;
 		else
 			return false;
+	}
 	else
 		return true;
 }