mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 14:33:05 +00:00
rtl8188eu: Fix builds for branch v4.1.8_9499 for newer kernels
These changes allow builds up through kernel 4.16. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
10737c73b1
commit
594a5a050d
13 changed files with 235 additions and 10 deletions
|
@ -1251,8 +1251,8 @@ phy_IQCalibrate_8188E(
|
|||
#endif
|
||||
if ( *(pDM_Odm->mp_mode) == 1)
|
||||
retryCount = 9;
|
||||
else
|
||||
retryCount = 2;
|
||||
else
|
||||
retryCount = 2;
|
||||
/* Note: IQ calibration must be performed after loading */
|
||||
/* PHY_REG.txt , and radio_a, radio_b.txt */
|
||||
|
||||
|
|
|
@ -2766,8 +2766,10 @@ ODM_InitAllTimers(
|
|||
PDM_ODM_T pDM_Odm
|
||||
)
|
||||
{
|
||||
#if 0
|
||||
ODM_InitializeTimer(pDM_Odm,&pDM_Odm->DM_SWAT_Table.SwAntennaSwitchTimer,
|
||||
(RT_TIMER_CALL_BACK)odm_SwAntDivChkAntSwitchCallback, NULL, "SwAntennaSwitchTimer");
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -312,6 +312,7 @@ ODM_SetTimer(
|
|||
_set_timer(pTimer,msDelay ); /* ms */
|
||||
}
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)
|
||||
void
|
||||
ODM_InitializeTimer(
|
||||
PDM_ODM_T pDM_Odm,
|
||||
|
@ -324,6 +325,7 @@ ODM_InitializeTimer(
|
|||
struct adapter *Adapter = pDM_Odm->Adapter;
|
||||
_init_timer(pTimer,Adapter->pnetdev,CallBackFunc,pDM_Odm);
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
ODM_CancelTimer(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue