mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-08 07:14:03 +00:00
Update for kernel 4.15
This commit adds support for kernel 4.15, which changed the timer interface.
Fetch from 8c3acf9275
This commit is contained in:
@@ -152,7 +152,11 @@ typedef enum _RT_SPINLOCK_TYPE{
|
||||
|
||||
typedef struct rtl8192cd_priv *prtl8192cd_priv;
|
||||
typedef struct stat_info STA_INFO_T,*PSTA_INFO_T;
|
||||
#if defined (LINUX_VERSION_CODE) && (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0))
|
||||
typedef struct legacy_timer_emu RT_TIMER, *PRT_TIMER;
|
||||
#else
|
||||
typedef struct timer_list RT_TIMER, *PRT_TIMER;
|
||||
#endif
|
||||
typedef void * RT_TIMER_CALL_BACK;
|
||||
|
||||
#ifdef CONFIG_PCI_HCI
|
||||
@@ -222,7 +226,11 @@ typedef enum _RT_SPINLOCK_TYPE{
|
||||
#define ODM_ENDIAN_TYPE ODM_ENDIAN_BIG
|
||||
#endif
|
||||
|
||||
#if defined (LINUX_VERSION_CODE) && (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0))
|
||||
typedef struct legacy_timer_emu RT_TIMER, *PRT_TIMER;
|
||||
#else
|
||||
typedef struct timer_list RT_TIMER, *PRT_TIMER;
|
||||
#endif
|
||||
typedef void * RT_TIMER_CALL_BACK;
|
||||
#define STA_INFO_T struct sta_info
|
||||
#define PSTA_INFO_T struct sta_info *
|
||||
|
||||
Reference in New Issue
Block a user