From ad21ef5f20a7a7c5aa12847be64e91920e785927 Mon Sep 17 00:00:00 2001 From: ivanovborislav <81085106+ivanovborislav@users.noreply.github.com> Date: Tue, 29 Mar 2022 18:34:43 +0300 Subject: [PATCH] Added Kernel 5.17 support --- hal/hal_hci/hal_usb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hal/hal_hci/hal_usb.c b/hal/hal_hci/hal_usb.c index 609616b..ab693ef 100644 --- a/hal/hal_hci/hal_usb.c +++ b/hal/hal_hci/hal_usb.c @@ -26,7 +26,11 @@ int usb_init_recv_priv(_adapter *padapter, u16 ini_in_buf_sz) #ifdef PLATFORM_LINUX tasklet_init(&precvpriv->recv_tasklet, +#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)) (void(*)(unsigned long))usb_recv_tasklet, +#else + (void *)usb_recv_tasklet, +#endif (unsigned long)padapter); #endif /* PLATFORM_LINUX */