From bd349c1b3c436ceb1281ef08968e348b616311fe Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Sun, 16 May 2021 16:14:18 +0200 Subject: [PATCH] wifi1 Signed-off-by: Igor Pecovnik --- drivers/net/wireless/rtl8811cu/os_dep/linux/recv_linux.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/rtl8811cu/os_dep/linux/recv_linux.c b/drivers/net/wireless/rtl8811cu/os_dep/linux/recv_linux.c index 7b62215a6..658216070 100755 --- a/drivers/net/wireless/rtl8811cu/os_dep/linux/recv_linux.c +++ b/drivers/net/wireless/rtl8811cu/os_dep/linux/recv_linux.c @@ -355,8 +355,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 */ -- Created with Armbian build tools https://github.com/armbian/build