From 9b4c60a89c2a55f36454b950a86246b6b86a9681 Mon Sep 17 00:00:00 2001 From: KonstantIMP Date: Sat, 8 May 2021 22:14:57 +0300 Subject: [PATCH] Add linux 5.12.x support Kernel with version >= 5.12.x doesnt support GRO_DROP so the driver must be updated --- os_dep/linux/recv_linux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/os_dep/linux/recv_linux.c b/os_dep/linux/recv_linux.c index 7fecc84..fc06a03 100644 --- a/os_dep/linux/recv_linux.c +++ b/os_dep/linux/recv_linux.c @@ -359,7 +359,8 @@ static int napi_recv(_adapter *padapter, int budget) if (rtw_napi_gro_receive(&padapter->napi, pskb) != GRO_DROP) rx_ok = _TRUE; #else - rx_ok = _TRUE; + rtw_napi_gro_receive(&padapter->napi, pskb); + rx_ok = _TRUE; #endif goto next; }