mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-11-30 17:02:28 +00:00
Fix API change in kernel v4.15
In this kernel, the timer setup and handlers changed quite a bit.
This commit is contained in:
parent
7f9dcff9bc
commit
be917e7579
@ -269,14 +269,14 @@ __inline static void rtw_list_delete(_list *plist)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define RTW_TIMER_HDL_ARGS void *FunctionContext
|
#define RTW_TIMER_HDL_ARGS void *FunctionContext
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)
|
||||||
__inline static void _init_timer(_timer *ptimer, _nic_hdl nic_hdl, void *pfunc, void *cntx)
|
__inline static void _init_timer(_timer *ptimer, _nic_hdl nic_hdl, void *pfunc, void *cntx)
|
||||||
{
|
{
|
||||||
/* setup_timer(ptimer, pfunc,(u32)cntx); */
|
|
||||||
ptimer->function = pfunc;
|
ptimer->function = pfunc;
|
||||||
ptimer->data = (unsigned long)cntx;
|
ptimer->data = (unsigned long)cntx;
|
||||||
init_timer(ptimer);
|
init_timer(ptimer);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
__inline static void _set_timer(_timer *ptimer, u32 delay_time)
|
__inline static void _set_timer(_timer *ptimer, u32 delay_time)
|
||||||
{
|
{
|
||||||
@ -429,5 +429,4 @@ extern struct net_device *rtw_alloc_etherdev(int sizeof_priv);
|
|||||||
|
|
||||||
#define STRUCT_PACKED __attribute__ ((packed))
|
#define STRUCT_PACKED __attribute__ ((packed))
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user