From 68bdbfa062eb39e65bc8e2398aa891a6fdd3bb35 Mon Sep 17 00:00:00 2001 From: Bala Venkatesh Date: Thu, 14 Jun 2018 12:28:10 +0530 Subject: [PATCH] qcacmn: Add support to allow user select preferred band for SAP Add enum QDF_MCC_TO_SCC_WITH_PREFERRED_BAND(6) for this. If ini gWlanMccToSccSwitchMode is selected to QDF_MCC_TO_SCC_WITH_PREFERRED_BAND(6) then following will be the behaviour of STA+SAP concurrency. 1. If second interface(SAP/STA) comes in same band as first interface(STA/SAP) respectively then force SCC irrespective of channel. 2. If second interface(SAP/STA) comes in other band as first interface(STA/SAP) then dont force SCC allow interband MCC or DBS based on DBS capability. Allow interband MCC but not intraband MCC. Change-Id: I91d41b4b0306ed4e362b5bcab9538f5fd5feea7d CRs-Fixed: 2260677 --- src/wlan_policy_mgr_get_set_utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wlan_policy_mgr_get_set_utils.c b/src/wlan_policy_mgr_get_set_utils.c index ab66d8bd5674..3a6e71a6c835 100644 --- a/src/wlan_policy_mgr_get_set_utils.c +++ b/src/wlan_policy_mgr_get_set_utils.c @@ -2824,7 +2824,9 @@ bool policy_mgr_is_force_scc(struct wlan_objmgr_psoc *psoc) (pm_ctx->user_cfg.mcc_to_scc_switch_mode == QDF_MCC_TO_SCC_SWITCH_WITH_FAVORITE_CHANNEL) || (pm_ctx->user_cfg.mcc_to_scc_switch_mode == - QDF_MCC_TO_SCC_SWITCH_FORCE_PREFERRED_WITHOUT_DISCONNECTION)); + QDF_MCC_TO_SCC_SWITCH_FORCE_PREFERRED_WITHOUT_DISCONNECTION) || + (pm_ctx->user_cfg.mcc_to_scc_switch_mode == + QDF_MCC_TO_SCC_WITH_PREFERRED_BAND)); } bool policy_mgr_is_sta_sap_scc_allowed_on_dfs_chan(