From 6c160b4194c9be4b86c8c70b8689efb6f3e8decd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Bremv=C3=A5g?= Date: Sat, 19 Mar 2022 17:46:49 +0100 Subject: [PATCH] Revert "Drop IPX and Apple Talk support for Linux 5.15" --- core/rtw_br_ext.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/core/rtw_br_ext.c b/core/rtw_br_ext.c index 4507dce..6509df3 100644 --- a/core/rtw_br_ext.c +++ b/core/rtw_br_ext.c @@ -17,10 +17,7 @@ #ifdef __KERNEL__ #include #include - #include -#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0) #include -#endif #include #include #include @@ -172,7 +169,6 @@ static __inline__ void __nat25_generate_ipv4_network_addr(unsigned char *network } -#ifdef _NET_INET_IPX_H_ static __inline__ void __nat25_generate_ipx_network_addr_with_node(unsigned char *networkAddr, unsigned int *ipxNetAddr, unsigned char *ipxNodeAddr) { @@ -204,7 +200,6 @@ static __inline__ void __nat25_generate_apple_network_addr(unsigned char *networ memcpy(networkAddr + 1, (unsigned char *)network, 2); networkAddr[3] = *node; } -#endif static __inline__ void __nat25_generate_pppoe_network_addr(unsigned char *networkAddr, @@ -334,7 +329,6 @@ static __inline__ int __nat25_network_hash(unsigned char *networkAddr) 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; @@ -348,7 +342,6 @@ static __inline__ int __nat25_network_hash(unsigned char *networkAddr) x = networkAddr[1] ^ networkAddr[2] ^ networkAddr[3]; return x & (NAT25_HASH_SIZE - 1); -#endif } else if (networkAddr[0] == NAT25_PPPOE) { unsigned long x; @@ -895,7 +888,6 @@ int nat25_db_handle(_adapter *priv, struct sk_buff *skb, int method) } } -#ifdef _NET_INET_IPX_H_ /*---------------------------------------------------*/ /* Handle IPX and Apple Talk frame */ /*---------------------------------------------------*/ @@ -1116,7 +1108,6 @@ int nat25_db_handle(_adapter *priv, struct sk_buff *skb, int method) return -1; } -#endif /*---------------------------------------------------*/ /* Handle PPPoE frame */