diff options
| author | bings <bings@codeaurora.org> | 2018-11-28 17:41:35 +0800 |
|---|---|---|
| committer | bings <bings@codeaurora.org> | 2018-11-29 10:44:50 +0800 |
| commit | fb0a3aaa1e3bf02cb04b473eee227bff06b114f5 (patch) | |
| tree | 2c567b57298da4b29ff27025a94ffbb45405ee06 | |
| parent | 9ce21fcfa65af0ac31dcb28bc2d4a522357b0608 (diff) | |
qcacld-2.0: Don't define pci related api if HIF_PCI isn't defined
If HIF_PCI is not defined, do not define pci related api, otherwise
there will be build error
Change-Id: I3d6989ea2ee4c7c13ad011b6b1ca11a1123de168
CRs-Fixed: 2357878
| -rw-r--r-- | CORE/VOSS/inc/vos_cnss.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CORE/VOSS/inc/vos_cnss.h b/CORE/VOSS/inc/vos_cnss.h index 8bfae8619cb4..51e1eaf316e4 100644 --- a/CORE/VOSS/inc/vos_cnss.h +++ b/CORE/VOSS/inc/vos_cnss.h @@ -51,12 +51,13 @@ enum cnss_cc_src { CNSS_SOURCE_11D, CNSS_SOURCE_USER }; - +#ifdef HIF_PCI static inline void vos_wlan_pci_link_down(void){ return; } static inline int vos_pcie_shadow_control(struct pci_dev *dev, bool enable) { return -ENODEV; } +#endif static inline u8 *vos_get_cnss_wlan_mac_buff(struct device *dev, uint32_t *num) { |
