1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-29 08:27:41 +00:00

Merge pull request #848 from CGarces/fix_5.12

Fix GRO_DROP deprecation kernel 5.12
This commit is contained in:
Christian Bremvåg 2021-05-04 14:26:46 +02:00 committed by GitHub
commit f9c8ad7192
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 */