Skip to content

Commit

Permalink
rtl8192ee: Fix build with kernel 5.15
Browse files Browse the repository at this point in the history
Signed-off-by: Larry Finger <[email protected]>
  • Loading branch information
lwfinger committed Nov 8, 2021
1 parent b41789a commit 74278ad
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/rtw_br_ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,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
Expand Down Expand Up @@ -887,7 +890,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 */
/*---------------------------------------------------*/
Expand Down Expand Up @@ -1108,7 +1111,7 @@ int nat25_db_handle(_adapter *priv, struct sk_buff *skb, int method)

return -1;
}

#endif
/*---------------------------------------------------*/
/* Handle PPPoE frame */
/*---------------------------------------------------*/
Expand Down

0 comments on commit 74278ad

Please sign in to comment.