1 --- a/src/wl/sys/wl_linux.c 2017-07-17 00:11:24.000000000 +0100
2 +++ b/src/wl/sys/wl_linux.c 2018-01-27 09:49:47.057799596 +0000
7 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
8 +static void wl_timer(struct timer_list *tl);
10 static void wl_timer(ulong data);
12 static void _wl_timer(wl_timer_t *t);
13 static struct net_device *wl_alloc_linux_if(wl_if_t *wlif);
15 @@ -2297,10 +2301,17 @@
16 atomic_dec(&t->wl->callbacks);
19 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
21 +wl_timer(struct timer_list *tl)
23 + wl_timer_t *t = (wl_timer_t *)tl;
28 wl_timer_t *t = (wl_timer_t *)data;
31 if (!WL_ALL_PASSIVE_ENAB(t->wl))
33 @@ -2352,9 +2363,13 @@
35 bzero(t, sizeof(wl_timer_t));
37 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
38 + timer_setup(&t->timer, wl_timer, 0);
40 init_timer(&t->timer);
41 t->timer.data = (ulong) t;
42 t->timer.function = wl_timer;