From ad4eded14b1121882fd8b4ebc7a36b972570e2b3 Mon Sep 17 00:00:00 2001 From: guangde Date: Mon, 6 May 2019 16:07:57 +0800 Subject: [PATCH] qcacmn: Get BT/WLAN isolation for mainline Propagation from qcacld2.0 to qcacld3.0. The WMI CMD and EVENT of "get antenna isolation" are already defined, but not used before in qcacld3.0. Now, The host driver uses vendor command to get this information instead of iwpriv command in qcacld-2.0. The attribution of this feature is already defined in file "qca_vendor.h". The name is "QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION". So host driver will use vendor command "QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY" to get the information from lower layer. Change-Id: I915768f622ddc9a70a95ce4fe952f19917a8f901 CRs-Fixed: 2447363 --- wmi/inc/wmi_unified_param.h | 1 + wmi/src/wmi_unified_tlv.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index aa0a92f8c0..4d1a9631e9 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -4833,6 +4833,7 @@ typedef enum { #ifdef WLAN_FEATURE_INTEROP_ISSUES_AP wmi_pdev_interop_issues_ap_event_id, #endif + wmi_coex_report_antenna_isolation_event_id, wmi_events_max, } wmi_conv_event_id; diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index b2e3cfce60..ee1990b709 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -12224,6 +12224,8 @@ static void populate_tlv_events_id(uint32_t *event_ids) event_ids[wmi_vdev_get_mws_coex_antenna_sharing_state_eventid] = WMI_VDEV_GET_MWS_COEX_ANTENNA_SHARING_STATE_EVENTID; #endif + event_ids[wmi_coex_report_antenna_isolation_event_id] = + WMI_COEX_REPORT_ANTENNA_ISOLATION_EVENTID; } /**