1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-23 05:44:40 +00:00

Update osdep_service.c

This commit is contained in:
Christian B 2017-12-17 11:56:50 +01:00 committed by GitHub
parent 43c6c987b0
commit c39d6bcf0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) void rtw_init_timer(_timer *ptimer, void *padapter, void *pfunc)
{ {
_adapter *adapter = (_adapter *)padapter; _adapter *adapter = (_adapter *)padapter;
#ifdef PLATFORM_LINUX
_init_timer(ptimer, adapter->pnetdev, pfunc, adapter); _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
/* /*