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 */ /*---------------------------------------------------*/