Skip to content

Commit 465e2eb

Browse files
Add Kernel 6.2 support
1 parent 85e38ac commit 465e2eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

os_dep/linux/os_intfs.c

+4
Original file line numberDiff line numberDiff line change
@@ -2154,7 +2154,11 @@ int rtw_os_ndev_register(_adapter *adapter, const char *name)
21542154
u8 rtnl_lock_needed = rtw_rtnl_lock_needed(dvobj);
21552155

21562156
#ifdef CONFIG_RTW_NAPI
2157+
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0))
2158+
netif_napi_add_weight(ndev, &adapter->napi, rtw_recv_napi_poll, RTL_NAPI_WEIGHT);
2159+
#else
21572160
netif_napi_add(ndev, &adapter->napi, rtw_recv_napi_poll, RTL_NAPI_WEIGHT);
2161+
#endif
21582162
#endif /* CONFIG_RTW_NAPI */
21592163

21602164
#if defined(CONFIG_IOCTL_CFG80211)

0 commit comments

Comments
 (0)