1
0
mirror of https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git synced 2025-04-29 15:19:40 +02:00

Adapt to kernel 4.15 timers interface changes (#242)

Credits to
https://github.com/mkubecek/vmware-host-modules/commit/562121d7bc06 for
helping me understand the changes.
This commit is contained in:
Alejandro Rodríguez 2018-02-08 13:24:55 -03:00 committed by Harshavardhana
parent 3059b62c98
commit ee9ad6c348

View File

@ -271,8 +271,12 @@ __inline static void _init_timer(_timer *ptimer,_nic_hdl nic_hdl,void *pfunc,voi
{
//setup_timer(ptimer, pfunc,(u32)cntx);
ptimer->function = pfunc;
#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0))
ptimer->data = (unsigned long)cntx;
init_timer(ptimer);
#else
timer_setup(ptimer, pfunc, 0);
#endif
}
__inline static void _set_timer(_timer *ptimer,u32 delay_time)