Merge pull request #14 from jekamps/kernel_5.15-fix

rtl8723ds: Fix build with kernel 5.15
This commit is contained in:
lwfinger
2022-01-18 10:13:30 -06:00
committed by GitHub

View File

@@ -20,10 +20,13 @@
#define _RTW_BR_EXT_C_
#ifdef __KERNEL__
#include <linux/version.h>
#include <linux/if_arp.h>
#include <net/ip.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)
#include <net/ipx.h>
#include <linux/atalk.h>
#endif
#include <linux/udp.h>
#include <linux/if_pppox.h>
#endif
@@ -892,7 +895,7 @@ int nat25_db_handle(_adapter *priv, struct sk_buff *skb, int method)
return -1;
}
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)
/*---------------------------------------------------*/
/* Handle IPX and Apple Talk frame */
/*---------------------------------------------------*/
@@ -1113,7 +1116,7 @@ int nat25_db_handle(_adapter *priv, struct sk_buff *skb, int method)
return -1;
}
#endif
/*---------------------------------------------------*/
/* Handle PPPoE frame */
/*---------------------------------------------------*/