mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-19 10:23:03 +00:00
This series is based on * 2020-07-10 ipq6018-ilq-11-0_qca_oem-034672b0676c37b1f4519e5720e18e95fe6236ef Add support for * qsdk kernel/v4.4 * qsdk ethernet subsystem * v5.7 ath11k backport + QualComm staging patches (wlan_ap_1.0) * ath11k-firmware * hostapd/iw/... Feature support * full boot, system detection * sysupgrade to nand * HE support via latest hostapd * driver support for usb, crypto, hwmon, cpufreq, ... Missing * NSS/HW flow offloading - FW blob is not redistributable Using the qsdk v4.4 is an intermediate solution while the vanilla is being tested. Vanilla kernel is almost on feature par. Work has already started to upstream the ethernet and switch drivers. Once complete the target will be fully upstream. Signed-off-by: John Crispin <john@phrozen.org>
74 lines
2.0 KiB
Diff
74 lines
2.0 KiB
Diff
--- a/backport-include/linux/skbuff.h
|
|
+++ b/backport-include/linux/skbuff.h
|
|
@@ -348,7 +348,7 @@ static inline void *backport___skb_push(
|
|
}
|
|
#define __skb_push LINUX_BACKPORT(__skb_push)
|
|
|
|
-static inline void *skb_put_zero(struct sk_buff *skb, unsigned int len)
|
|
+static inline void *backport_skb_put_zero(struct sk_buff *skb, unsigned int len)
|
|
{
|
|
void *tmp = skb_put(skb, len);
|
|
|
|
@@ -356,9 +356,10 @@ static inline void *skb_put_zero(struct
|
|
|
|
return tmp;
|
|
}
|
|
+#define skb_put_zero LINUX_BACKPORT(skb_put_zero)
|
|
|
|
-static inline void *skb_put_data(struct sk_buff *skb, const void *data,
|
|
- unsigned int len)
|
|
+static inline void *backport_skb_put_data(struct sk_buff *skb, const void *data,
|
|
+ unsigned int len)
|
|
{
|
|
void *tmp = skb_put(skb, len);
|
|
|
|
@@ -366,11 +367,14 @@ static inline void *skb_put_data(struct
|
|
|
|
return tmp;
|
|
}
|
|
+#define skb_put_data LINUX_BACKPORT(skb_put_data)
|
|
|
|
-static inline void skb_put_u8(struct sk_buff *skb, u8 val)
|
|
+static inline void backport_skb_put_u8(struct sk_buff *skb, u8 val)
|
|
{
|
|
*(u8 *)skb_put(skb, 1) = val;
|
|
}
|
|
+#define skb_put_u8 LINUX_BACKPORT(skb_put_u8)
|
|
+
|
|
#endif
|
|
|
|
#if LINUX_VERSION_IS_LESS(4,20,0)
|
|
--- a/backport-include/linux/pci.h
|
|
+++ b/backport-include/linux/pci.h
|
|
@@ -138,6 +138,7 @@ static inline int pci_vfs_assigned(struc
|
|
|
|
#endif /* LINUX_VERSION_IS_LESS(3,10,0) */
|
|
|
|
+#ifndef CONFIG_QRTR_MHI
|
|
#if LINUX_VERSION_IS_LESS(4,8,0)
|
|
#define pci_alloc_irq_vectors LINUX_BACKPORT(pci_alloc_irq_vectors)
|
|
#ifdef CONFIG_PCI_MSI
|
|
@@ -156,6 +157,7 @@ static inline void pci_free_irq_vectors(
|
|
{
|
|
}
|
|
#endif
|
|
+#endif
|
|
|
|
#if LINUX_VERSION_IS_LESS(3,14,0)
|
|
#define pci_enable_msi_range LINUX_BACKPORT(pci_enable_msi_range)
|
|
--- a/compat/backport-4.8.c
|
|
+++ b/compat/backport-4.8.c
|
|
@@ -146,6 +146,7 @@ next_desc:
|
|
}
|
|
EXPORT_SYMBOL_GPL(cdc_parse_cdc_header);
|
|
|
|
+#ifndef CONFIG_QRTR_MHI
|
|
#ifdef CONFIG_PCI
|
|
#ifdef CONFIG_PCI_MSI
|
|
|
|
@@ -194,3 +195,4 @@ int pci_alloc_irq_vectors(struct pci_dev
|
|
EXPORT_SYMBOL_GPL(pci_alloc_irq_vectors);
|
|
#endif /* CONFIG_PCI_MSI */
|
|
#endif /* CONFIG_PCI */
|
|
+#endif /* CONFIG_QRTR_MHI */
|