mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-23 21:19:04 -04:00
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
This commit is contained in:
parent
1d2f3d2a25
commit
a2c32d4a58
1 changed files with 8 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue