From c39d6bcf0a75aef6a0a6604b77f40c619a23139c Mon Sep 17 00:00:00 2001 From: Christian B Date: Sun, 17 Dec 2017 11:56:50 +0100 Subject: [PATCH] Update osdep_service.c --- os_dep/osdep_service.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/os_dep/osdep_service.c b/os_dep/osdep_service.c index 6fa4e82..88a3ff5 100644 --- a/os_dep/osdep_service.c +++ b/os_dep/osdep_service.c @@ -996,15 +996,21 @@ void rtw_list_insert_tail(_list *plist, _list *phead) } -#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0) void rtw_init_timer(_timer *ptimer, void *padapter, void *pfunc) { _adapter *adapter = (_adapter *)padapter; +#ifdef PLATFORM_LINUX _init_timer(ptimer, adapter->pnetdev, pfunc, adapter); +#endif +#ifdef PLATFORM_FREEBSD + _init_timer(ptimer, adapter->pifp, pfunc, adapter->mlmepriv.nic_hdl); +#endif +#ifdef PLATFORM_WINDOWS + _init_timer(ptimer, adapter->hndis_adapter, pfunc, adapter->mlmepriv.nic_hdl); +#endif } -#endif /*