From aa24ae5b1b98f4e5e348c0e0ab63e164d07c6688 Mon Sep 17 00:00:00 2001 From: Deeksha Gupta Date: Wed, 10 Mar 2021 12:02:17 +0530 Subject: [PATCH] qcacld-3.0: Support P2P in 6GHz mode Currently, P2P mode is not supported in 6GHz mode Add P2P mode in policy_mgr_is_6ghz_conc_mode_supported API to support P2P mode in 6GHz mode as fix this. Change-Id: I2e160641c1784dbbd592b237da6b38929f33abbe CRs-Fixed: 2896291 --- components/cmn_services/policy_mgr/inc/wlan_policy_mgr_api.h | 2 +- .../policy_mgr/src/wlan_policy_mgr_get_set_utils.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/cmn_services/policy_mgr/inc/wlan_policy_mgr_api.h b/components/cmn_services/policy_mgr/inc/wlan_policy_mgr_api.h index 5dd47acd6dcf..06924330bcd3 100644 --- a/components/cmn_services/policy_mgr/inc/wlan_policy_mgr_api.h +++ b/components/cmn_services/policy_mgr/inc/wlan_policy_mgr_api.h @@ -3442,7 +3442,7 @@ QDF_STATUS policy_mgr_get_hw_mode_from_idx( * @psoc: Pointer to soc * @mode: new connection mode * - * Current PORed 6ghz connection modes are STA, SAP. + * Current PORed 6ghz connection modes are STA, SAP, P2P. * * Return: true if supports else false. */ 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 5db2a2d32352..32a06d89ff8e 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 @@ -2357,7 +2357,8 @@ static bool policy_mgr_allow_multiple_sta_connections(struct wlan_objmgr_psoc *p bool policy_mgr_is_6ghz_conc_mode_supported( struct wlan_objmgr_psoc *psoc, enum policy_mgr_con_mode mode) { - if (mode == PM_STA_MODE || mode == PM_SAP_MODE) + if (mode == PM_STA_MODE || mode == PM_SAP_MODE || + mode == PM_P2P_CLIENT_MODE || mode == PM_P2P_GO_MODE) return true; else return false;