From 6e5292034cda0ffa24a9850ebd66601bfc966b42 Mon Sep 17 00:00:00 2001 From: Jyoti Kumari Date: Mon, 8 Feb 2021 21:19:49 +0530 Subject: [PATCH] qcacld-3.0: STA SAP concurrency for non dbs HW mode SAP stops working when it comes first and then sta connection happens in non dbs HW mode Allow SAP on non dbs HW even if the channel is safe or lte-coex enabled. Change-Id: I3e80b423ccb30fdb5e53a6d2aff961162b316e1c CRs-Fixed: 2873957 --- .../policy_mgr/src/wlan_policy_mgr_action.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c index 3f13a9b0c7fe..0f82d1a87379 100644 --- a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c +++ b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c @@ -2287,9 +2287,13 @@ QDF_STATUS policy_mgr_valid_sap_conc_channel_check( return QDF_STATUS_E_FAILURE; } } else { - policy_mgr_warn("Can't have concurrency on %d", - ch_freq); - return QDF_STATUS_E_FAILURE; + if (!(policy_mgr_sta_sap_scc_on_lte_coex_chan + (psoc)) && !(policy_mgr_is_safe_channel + (psoc, ch_freq))) { + policy_mgr_warn("Can't have concurrency due to unsafe channel %d", + ch_freq); + return QDF_STATUS_E_FAILURE; + } } } }