From b80b52a36ee28e99e8604854632233e1b6e9a554 Mon Sep 17 00:00:00 2001 From: John-Eric Kamps Date: Mon, 17 Jan 2022 23:28:21 +0100 Subject: [PATCH] rtl8723ds: Fix build with kernel 5.15 Signed-off-by: John-Eric Kamps --- core/rtw_br_ext.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/rtw_br_ext.c b/core/rtw_br_ext.c index b330edf..ae45279 100644 --- a/core/rtw_br_ext.c +++ b/core/rtw_br_ext.c @@ -20,10 +20,13 @@ #define _RTW_BR_EXT_C_ #ifdef __KERNEL__ + #include #include #include +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0) #include #include +#endif #include #include #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 */ /*---------------------------------------------------*/