summaryrefslogtreecommitdiff
path: root/target_if
diff options
context:
space:
mode:
authorRyan Hsu <ryanhsu@codeaurora.org>2017-12-19 13:42:04 -0800
committersnandini <snandini@codeaurora.org>2017-12-28 13:24:44 -0800
commita2c32d4a5854ada0e0ab42ec2ad3bc5d656ba9df (patch)
treeda58030d83a7cc8fa8e2cce91b4959e08c3cc268 /target_if
parent1d2f3d2a2543caea80cc7435a02a7593ce354da0 (diff)
downloadqca-wfi-host-cmn-a2c32d4a5854ada0e0ab42ec2ad3bc5d656ba9df.tar.gz
qcacmn: Add target if interface to get wmi_handle from pdev
Adding the target_if interface to get the wmi_handle from pdev, the condidional flag is added due to different implemention of treating the tgt_if_handle. CRs-fixed: 2161374 Change-Id: Ia5206199afd5d41774928793d78e6648f03c181b
Diffstat (limited to 'target_if')
-rw-r--r--target_if/core/inc/target_if.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/target_if/core/inc/target_if.h b/target_if/core/inc/target_if.h
index 5af6cb9b9..d61960933 100644
--- a/target_if/core/inc/target_if.h
+++ b/target_if/core/inc/target_if.h
@@ -52,6 +52,14 @@
#define GET_WMI_HDL_FROM_PSOC(psoc) \
(((struct target_psoc_info *)(psoc->tgt_if_handle))->wmi_handle)
+#ifdef CONFIG_MCL
+#define GET_WMI_HDL_FROM_PDEV(pdev) \
+ (((struct target_psoc_info *)(pdev->tgt_if_handle))->wmi_handle)
+#else
+#define GET_WMI_HDL_FROM_PDEV(pdev) ((pdev)->tgt_if_handle)
+#endif
+
+
#define TARGET_TYPE_AR900B 9
#define TARGET_TYPE_QCA9984 15 /* cascade */
#define TARGET_TYPE_IPQ4019 16 /* dakota */