]> git.pld-linux.org Git - packages/rtl8812au.git/blob - kernel-5.15.patch
- no IPX in kernel 5.15, rel 2
[packages/rtl8812au.git] / kernel-5.15.patch
1 --- rtl8812au-5.9.3.2-main/core/rtw_br_ext.c~   2021-04-27 13:31:30.000000000 +0200
2 +++ rtl8812au-5.9.3.2-main/core/rtw_br_ext.c    2021-11-06 23:56:47.750942784 +0100
3 @@ -17,7 +17,10 @@
4  #ifdef __KERNEL__
5         #include <linux/if_arp.h>
6         #include <net/ip.h>
7 +       #include <linux/version.h>
8 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0))
9         #include <net/ipx.h>
10 +#endif
11         #include <linux/atalk.h>
12         #include <linux/udp.h>
13         #include <linux/if_pppox.h>
14 @@ -57,7 +59,9 @@
15  
16  #define NAT25_IPV4             01
17  #define NAT25_IPV6             02
18 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0))
19  #define NAT25_IPX              03
20 +#endif
21  #define NAT25_APPLE            04
22  #define NAT25_PPPOE            05
23  
24 @@ -169,6 +173,7 @@
25  }
26  
27  
28 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0))
29  static __inline__ void __nat25_generate_ipx_network_addr_with_node(unsigned char *networkAddr,
30                 unsigned int *ipxNetAddr, unsigned char *ipxNodeAddr)
31  {
32 @@ -189,6 +194,7 @@
33         memcpy(networkAddr + 1, (unsigned char *)ipxNetAddr, 4);
34         memcpy(networkAddr + 5, (unsigned char *)ipxSocketAddr, 2);
35  }
36 +#endif
37  
38  
39  static __inline__ void __nat25_generate_apple_network_addr(unsigned char *networkAddr,
40 @@ -330,6 +336,7 @@
41                 x = networkAddr[7] ^ networkAddr[8] ^ networkAddr[9] ^ networkAddr[10];
42  
43                 return x & (NAT25_HASH_SIZE - 1);
44 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0))
45         } else if (networkAddr[0] == NAT25_IPX) {
46                 unsigned long x;
47  
48 @@ -337,6 +344,7 @@
49                     networkAddr[6] ^ networkAddr[7] ^ networkAddr[8] ^ networkAddr[9] ^ networkAddr[10];
50  
51                 return x & (NAT25_HASH_SIZE - 1);
52 +#endif
53         } else if (networkAddr[0] == NAT25_APPLE) {
54                 unsigned long x;
55  
56 @@ -889,6 +897,7 @@
57                 }
58         }
59  
60 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0))
61         /*---------------------------------------------------*/
62         /*         Handle IPX and Apple Talk frame          */
63         /*---------------------------------------------------*/
64 @@ -1120,6 +1119,7 @@
65  
66                 return -1;
67         }
68 +#endif
69  
70         /*---------------------------------------------------*/
71         /*                Handle PPPoE frame                */
This page took 0.078007 seconds and 3 git commands to generate.