mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-29 23:43:40 +00:00
rtl8188eu: Fix buid with kernel 5.12
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
60cb0b5a3c
commit
8097dac011
1 changed files with 4 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue