From 316ca349b3584e092d2a285217da252a723306b6 Mon Sep 17 00:00:00 2001 From: Utkarsh Bhatnagar Date: Wed, 29 Apr 2020 08:45:41 +0530 Subject: [PATCH] qcacld-3.0: Added logs in policy_mgr_is_concurrency_allowed Increased logging in policy_mgr_is_concurrency_allowed by adding debug logs in policy_mgr_allow_multiple_sta_connections and policy_mgr_is_6g_channel_allowed. Change-Id: Ic285566209b4d63df579913e7390c48891a04855 CRs-Fixed: 2674968 --- .../policy_mgr/src/wlan_policy_mgr_get_set_utils.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_get_set_utils.c b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_get_set_utils.c index 629868899532..2a9345d02c5e 100644 --- a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_get_set_utils.c +++ b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_get_set_utils.c @@ -2299,8 +2299,10 @@ static bool policy_mgr_allow_multiple_sta_connections(struct wlan_objmgr_psoc *p return false; } if (!wmi_service_enabled(wmi_handle, - wmi_service_sta_plus_sta_support)) + wmi_service_sta_plus_sta_support)) { + policy_mgr_rl_debug("STA+STA is not supported"); return false; + } return true; } @@ -2343,12 +2345,15 @@ static bool policy_mgr_is_6g_channel_allowed( policy_mgr_err("Invalid Context"); return false; } - if (!WLAN_REG_IS_6GHZ_CHAN_FREQ(ch_freq)) + if (!WLAN_REG_IS_6GHZ_CHAN_FREQ(ch_freq)) { + policy_mgr_rl_debug("Not a 6Ghz channel Freq"); return true; - + } /* Only STA/SAP is supported on 6Ghz currently */ - if (!policy_mgr_is_6ghz_conc_mode_supported(psoc, mode)) + if (!policy_mgr_is_6ghz_conc_mode_supported(psoc, mode)) { + policy_mgr_rl_debug("mode %d for 6ghz not supported", mode); return false; + } qdf_mutex_acquire(&pm_ctx->qdf_conc_list_lock); for (conn_index = 0; conn_index < MAX_NUMBER_OF_CONC_CONNECTIONS;