From 813383c330ad6b33350d3ac3a1f50fba64de1c3c Mon Sep 17 00:00:00 2001 From: Ajit Pal Singh Date: Tue, 3 Oct 2017 16:14:58 +0530 Subject: [PATCH] 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 --- core/sap/src/sap_fsm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/sap/src/sap_fsm.c b/core/sap/src/sap_fsm.c index df0a821c73cb..3ba200cd4cd4 100644 --- a/core/sap/src/sap_fsm.c +++ b/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;