Browse Source

qcacld-3.0: Force SCC for STA+P2PGO if gWlanMccToSccSwitchMode!=0

While selecting P2PGO channel in sap_goto_channel_sel(), force SCC
if there is STA + P2PGO concurrency AND gWlanMccToSccSwitchMode!=0,
This makes behaviour similar to STA + AP concurrency.

Change-Id: Ib80a36c22432791c5466b68b625373c58e4c8206
Ajit Pal Singh 7 năm trước cách đây
mục cha
commit
813383c330
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      core/sap/src/sap_fsm.c

+ 4 - 2
core/sap/src/sap_fsm.c

@@ -1740,8 +1740,10 @@ QDF_STATUS sap_goto_channel_sel(struct sap_context *sap_context,
 #endif
 	}
 
-	if (policy_mgr_get_concurrency_mode(mac_ctx->psoc) ==
-		(QDF_STA_MASK | QDF_SAP_MASK)) {
+	if ((policy_mgr_get_concurrency_mode(mac_ctx->psoc) ==
+		(QDF_STA_MASK | QDF_SAP_MASK)) ||
+	    (policy_mgr_get_concurrency_mode(mac_ctx->psoc) ==
+		(QDF_STA_MASK | QDF_P2P_GO_MASK))) {
 #ifdef FEATURE_WLAN_STA_AP_MODE_DFS_DISABLE
 		if (sap_context->channel == AUTO_CHANNEL_SELECT)
 			sap_context->dfs_ch_disable = true;