From 8097dac01139e6367621bc8e2b1f4d406f2dc1b4 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Wed, 24 Feb 2021 13:34:05 -0600 Subject: [PATCH] rtl8188eu: Fix buid with kernel 5.12 Signed-off-by: Larry Finger --- os_dep/recv_linux.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/os_dep/recv_linux.c b/os_dep/recv_linux.c index c2da1a4..f0b082b 100644 --- a/os_dep/recv_linux.c +++ b/os_dep/recv_linux.c @@ -312,8 +312,12 @@ static int napi_recv(_adapter *padapter, int budget) #ifdef CONFIG_RTW_GRO if (pregistrypriv->en_gro) { +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 12, 0) if (rtw_napi_gro_receive(&padapter->napi, pskb) != GRO_DROP) rx_ok = true; +#else + rx_ok = true; +#endif goto next; } #endif /* CONFIG_RTW_GRO */