Added Kernel 5.17 support

This commit is contained in:
ivanovborislav 2022-03-29 18:38:31 +03:00 committed by GitHub
parent ad21ef5f20
commit 0eee212e69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -25,7 +25,11 @@ s32 rtl8188eu_init_xmit_priv(_adapter *padapter)
#ifdef PLATFORM_LINUX
tasklet_init(&pxmitpriv->xmit_tasklet,
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0))
(void(*)(unsigned long))rtl8188eu_xmit_tasklet,
#else
(void *)rtl8188eu_xmit_tasklet,
#endif
(unsigned long)padapter);
#endif
#ifdef CONFIG_TX_EARLY_MODE