Forráskód Böngészése

qcacld-3.0: MCC to SCC switch for SAP+SAP and SAP+GO

MCC to SCC switch for second beaconing interface,
SAP+SAP and SAP+GO

Change-Id: I1b8e897ffc719b63a4de92f5fe02a2820bc29e4f
CRs-Fixed: 2127091
Jayachandran Sreekumaran 7 éve
szülő
commit
922477bbb0
1 módosított fájl, 7 hozzáadás és 2 törlés
  1. 7 2
      core/sap/src/sap_fsm.c

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

@@ -1688,8 +1688,13 @@ QDF_STATUS sap_goto_channel_sel(struct sap_context *sap_context,
 				FL("Invalid MAC context"));
 		return QDF_STATUS_E_FAILURE;
 	}
-
-	if (policy_mgr_concurrent_beaconing_sessions_running(mac_ctx->psoc)) {
+	if (policy_mgr_concurrent_beaconing_sessions_running(mac_ctx->psoc) ||
+	   ((sap_context->cc_switch_mode ==
+		QDF_MCC_TO_SCC_SWITCH_FORCE_PREFERRED_WITHOUT_DISCONNECTION) &&
+	   (policy_mgr_mode_specific_connection_count(mac_ctx->psoc,
+		PM_SAP_MODE, NULL) ||
+	     policy_mgr_mode_specific_connection_count(mac_ctx->psoc,
+		PM_P2P_GO_MODE, NULL)))) {
 		con_ch =
 			sme_get_concurrent_operation_channel(h_hal);
 #ifdef FEATURE_WLAN_STA_AP_MODE_DFS_DISABLE