Jelajahi Sumber

qcacld-3.0: allow STA SAP SCC on DFS

If sta_sap_scc_on_dfs_chan = 1, we
allow the SAP on STA's DFS chan.

Change-Id: I6d74f0db2247d3746047de7c65197d6634c4c6bb
CRs-Fixed: 2309846
Liangwei Dong 6 tahun lalu
induk
melakukan
8030a53419
1 mengubah file dengan 5 tambahan dan 1 penghapusan
  1. 5 1
      core/sap/src/sap_fsm.c

+ 5 - 1
core/sap/src/sap_fsm.c

@@ -917,12 +917,16 @@ sap_validate_chan(struct sap_context *sap_context,
 			QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_DEBUG,
 				  FL("After check concurrency: con_ch:%d"),
 				  con_ch);
+			sta_sap_scc_on_dfs_chan =
+				policy_mgr_is_sta_sap_scc_allowed_on_dfs_chan(
+						mac_ctx->psoc);
 			if (con_ch &&
 			    (policy_mgr_sta_sap_scc_on_lte_coex_chan(
 						mac_ctx->psoc) ||
 			     policy_mgr_is_safe_channel(mac_ctx->psoc,
 							con_ch)) &&
-			   !wlan_reg_is_dfs_ch(mac_ctx->pdev, con_ch)) {
+			     (!wlan_reg_is_dfs_ch(mac_ctx->pdev, con_ch) ||
+			      sta_sap_scc_on_dfs_chan)) {
 				QDF_TRACE(QDF_MODULE_ID_SAP,
 					QDF_TRACE_LEVEL_ERROR,
 					"%s: Override ch %d to %d due to CC Intf",