mirror of https://github.com/hak5/openwrt.git
mac80211: fix build without CONFIG_PCI
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry-picked from commit fa37dbbc43
)
openwrt-19.07
parent
30301dfcf0
commit
91dde4291c
|
@ -15,7 +15,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||||
(PCI_IRQ_LEGACY | PCI_IRQ_MSI | PCI_IRQ_MSIX)
|
(PCI_IRQ_LEGACY | PCI_IRQ_MSI | PCI_IRQ_MSIX)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
+#if LINUX_VERSION_IS_LESS(5,3,0)
|
+#if defined(CONFIG_PCI) && LINUX_VERSION_IS_LESS(5,3,0)
|
||||||
+
|
+
|
||||||
+static inline int
|
+static inline int
|
||||||
+LINUX_BACKPORT(pci_disable_link_state)(struct pci_dev *pdev, int state)
|
+LINUX_BACKPORT(pci_disable_link_state)(struct pci_dev *pdev, int state)
|
||||||
|
|
Loading…
Reference in New Issue