build/patch/misc/wireless-realtek-8188eu-5.12.patch

31 lines
1.0 KiB
Diff
Raw Permalink Normal View History

From 9c2aba6c19ff477530185442c9ac2717e2602d34 Mon Sep 17 00:00:00 2001
From: Igor Pecovnik <igor.pecovnik@gmail.com>
Date: Sun, 16 May 2021 16:22:09 +0200
Subject: [PATCH] adjust for k5.12
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
---
drivers/net/wireless/rtl8188eu/os_dep/linux/recv_linux.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/net/wireless/rtl8188eu/os_dep/linux/recv_linux.c b/drivers/net/wireless/rtl8188eu/os_dep/linux/recv_linux.c
index 0d8dc6dc8..80219c05e 100644
--- a/drivers/net/wireless/rtl8188eu/os_dep/linux/recv_linux.c
+++ b/drivers/net/wireless/rtl8188eu/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