1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-25 14:44:09 +00:00

Fix kernel v5.12 support

This commit is contained in:
kimocoder 2022-12-19 23:00:35 +01:00
parent 58a80b4a00
commit 9fed3068df

View File

@ -405,7 +405,7 @@ static int napi_recv(_adapter *padapter, int budget)
So, we should prevent cloned SKB go into napi_gro_receive. So, we should prevent cloned SKB go into napi_gro_receive.
*/ */
if (pregistrypriv->en_gro && !skb_cloned(pskb)) { if (pregistrypriv->en_gro && !skb_cloned(pskb)) {
if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 12, 0)) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 12, 0))
if (rtw_napi_gro_receive(&padapter->napi, pskb) != GRO_MERGED_FREE) if (rtw_napi_gro_receive(&padapter->napi, pskb) != GRO_MERGED_FREE)
#else #else
if (rtw_napi_gro_receive(&padapter->napi, pskb) != GRO_DROP) if (rtw_napi_gro_receive(&padapter->napi, pskb) != GRO_DROP)