mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-17 10:33:06 +00:00
rtl8188eu: Fix build for kernel 6.1
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
f99f244be3
commit
208f2ccb65
2 changed files with 29 additions and 14 deletions
|
@ -1319,7 +1319,11 @@ static int rtw_os_ndev_register(_adapter *adapter, const char *name)
|
|||
u8 rtnl_lock_needed = rtw_rtnl_lock_needed(dvobj);
|
||||
|
||||
#ifdef CONFIG_RTW_NAPI
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 1,0)
|
||||
netif_napi_add(ndev, &adapter->napi, rtw_recv_napi_poll, RTL_NAPI_WEIGHT);
|
||||
#else
|
||||
netif_napi_add(ndev, &adapter->napi, rtw_recv_napi_poll);
|
||||
#endif
|
||||
#endif /* CONFIG_RTW_NAPI */
|
||||
|
||||
#if defined(CONFIG_IOCTL_CFG80211)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue