From 0c05c48ee97d1b1ff12d4b752884b97c8d8109b6 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Sun, 16 May 2021 16:26:19 +0200 Subject: [PATCH] rtl88x2bu Signed-off-by: Igor Pecovnik --- drivers/net/wireless/rtl88x2bu/os_dep/linux/recv_linux.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/rtl88x2bu/os_dep/linux/recv_linux.c b/drivers/net/wireless/rtl88x2bu/os_dep/linux/recv_linux.c index 6bd2e0946..7d793c983 100644 --- a/drivers/net/wireless/rtl88x2bu/os_dep/linux/recv_linux.c +++ b/drivers/net/wireless/rtl88x2bu/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