From 80dfa726af9af4030d1d2622d57a08d5f3521de4 Mon Sep 17 00:00:00 2001 From: heitbaum Date: Sun, 10 Oct 2021 14:21:12 +1100 Subject: [PATCH] RTL8812AU: remove IPX from driver to support 5.15 --- .../RTL8812AU/patches/5-15-0.patch | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 packages/linux-drivers/RTL8812AU/patches/5-15-0.patch diff --git a/packages/linux-drivers/RTL8812AU/patches/5-15-0.patch b/packages/linux-drivers/RTL8812AU/patches/5-15-0.patch new file mode 100644 index 0000000000..87ec95c981 --- /dev/null +++ b/packages/linux-drivers/RTL8812AU/patches/5-15-0.patch @@ -0,0 +1,61 @@ +--- a/core/rtw_br_ext.c 2021-01-11 21:31:47.000000000 +1100 ++++ b/core/rtw_br_ext.c 2021-10-10 14:16:13.942229163 +1100 +@@ -17,7 +17,10 @@ + #ifdef __KERNEL__ + #include + #include ++ #include ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0) + #include ++#endif + #include + #include + #include +@@ -169,6 +172,7 @@ + } + + ++#ifdef _NET_INET_IPX_H_ + static __inline__ void __nat25_generate_ipx_network_addr_with_node(unsigned char *networkAddr, + unsigned int *ipxNetAddr, unsigned char *ipxNodeAddr) + { +@@ -189,6 +193,7 @@ + memcpy(networkAddr + 1, (unsigned char *)ipxNetAddr, 4); + memcpy(networkAddr + 5, (unsigned char *)ipxSocketAddr, 2); + } ++#endif + + + static __inline__ void __nat25_generate_apple_network_addr(unsigned char *networkAddr, +@@ -330,6 +335,7 @@ + x = networkAddr[7] ^ networkAddr[8] ^ networkAddr[9] ^ networkAddr[10]; + + return x & (NAT25_HASH_SIZE - 1); ++#ifdef _NET_INET_IPX_H_ + } else if (networkAddr[0] == NAT25_IPX) { + unsigned long x; + +@@ -337,6 +343,7 @@ + networkAddr[6] ^ networkAddr[7] ^ networkAddr[8] ^ networkAddr[9] ^ networkAddr[10]; + + return x & (NAT25_HASH_SIZE - 1); ++#endif + } else if (networkAddr[0] == NAT25_APPLE) { + unsigned long x; + +@@ -889,6 +896,7 @@ + } + } + ++#ifdef _NET_INET_IPX_H_ + /*---------------------------------------------------*/ + /* Handle IPX and Apple Talk frame */ + /*---------------------------------------------------*/ +@@ -1109,6 +1117,7 @@ + + return -1; + } ++#endif + + /*---------------------------------------------------*/ + /* Handle PPPoE frame */