From c187263d12bee3883da4232089361d8f1c759fa8 Mon Sep 17 00:00:00 2001 From: Vinod Kumar Myadam Date: Wed, 23 Jun 2021 23:22:43 +0530 Subject: [PATCH] qcacmn: Add P2P_P2P_CONCURRENCY_SUPPORT wmi service support Add P2P_P2P_CONCURRENCY_SUPPORT service capablity to validate whether fw can support p2p concurrency support or not. when firmware advertises this flag it can support MCC,SCC, DBS for p2p-GO/GC + p2p-GO/GC. Change-Id: Ifec4bf984595b06374be9024601733c8537a9c3e CRs-Fixed: 2984165 --- wmi/inc/wmi_unified_param.h | 5 ++++- wmi/src/wmi_unified_tlv.c | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index fef218d11b82..d5a8eeaae12b 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -1,6 +1,6 @@ /* * Copyright (c) 2016-2021 The Linux Foundation. All rights reserved. - * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -5276,6 +5276,9 @@ typedef enum { wmi_service_thermal_stats_temp_range_supported, #endif wmi_service_pno_scan_conf_per_ch_support, +#ifdef WLAN_FEATURE_P2P_P2P_STA + wmi_service_p2p_p2p_cc_support, +#endif wmi_services_max, } wmi_conv_service_ids; #define WMI_SERVICE_UNAVAILABLE 0xFFFF diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index 87970b76af27..3819c3ba6454 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -15963,6 +15963,10 @@ static void populate_tlv_service(uint32_t *wmi_service) #endif wmi_service[wmi_service_pno_scan_conf_per_ch_support] = WMI_SERVICE_PNO_SCAN_CONFIG_PER_CHANNEL; +#ifdef WLAN_FEATURE_P2P_P2P_STA + wmi_service[wmi_service_p2p_p2p_cc_support] = + WMI_SERVICE_P2P_P2P_CONCURRENCY_SUPPORT; +#endif } /**