mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-06-23 16:44:20 +00:00
rtl8188eu: Updates for timer changes in kernel 4.15
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
e472b5d684
commit
1f08a062ad
13 changed files with 196 additions and 7 deletions
|
@ -1580,8 +1580,12 @@ void odm_RSSIMonitorCheckAP(struct odm_dm_struct *pDM_Odm)
|
|||
|
||||
void ODM_InitAllTimers(struct odm_dm_struct *pDM_Odm)
|
||||
{
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)
|
||||
ODM_InitializeTimer(pDM_Odm, &pDM_Odm->DM_SWAT_Table.SwAntennaSwitchTimer,
|
||||
(void *)odm_SwAntDivChkAntSwitchCallback, NULL, "SwAntennaSwitchTimer");
|
||||
#else
|
||||
timer_setup(&pDM_Odm->DM_SWAT_Table.SwAntennaSwitchTimer, odm_SwAntDivChkAntSwitchCallback, 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
void ODM_CancelAllTimers(struct odm_dm_struct *pDM_Odm)
|
||||
|
@ -1690,7 +1694,11 @@ void ODM_SwAntDivRestAfterLink(struct odm_dm_struct *pDM_Odm)
|
|||
{
|
||||
}
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)
|
||||
void odm_SwAntDivChkAntSwitchCallback(void *FunctionContext)
|
||||
#else
|
||||
void odm_SwAntDivChkAntSwitchCallback(struct timer_list *t)
|
||||
#endif
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue