mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-11-09 23:57:10 +00:00
Merge pull request #9 from fariouche/v5.3.4
fixed compilation error if rtl8814 is not enabled in the Makefile
This commit is contained in:
commit
ba4e3fcdac
20
hal/hal_mp.c
20
hal/hal_mp.c
@ -1817,10 +1817,10 @@ void hal_mpt_SetSingleToneTx(PADAPTER pAdapter, u8 bStart)
|
||||
#if defined(CONFIG_RTL8814A)
|
||||
else if (IS_HARDWARE_TYPE_8814A(pAdapter))
|
||||
mpt_SetSingleTone_8814A(pAdapter, FALSE, FALSE);
|
||||
|
||||
#endif
|
||||
else/*/ Turn off all test modes.*/
|
||||
phy_set_bb_reg(pAdapter, rSingleTone_ContTx_Jaguar, BIT18 | BIT17 | BIT16, OFDM_ALL_OFF);
|
||||
#endif
|
||||
|
||||
write_bbreg(pAdapter, rFPGA0_XA_HSSIParameter1, bMaskDWord, 0x01000100);
|
||||
write_bbreg(pAdapter, rFPGA0_XB_HSSIParameter1, bMaskDWord, 0x01000100);
|
||||
|
||||
@ -2039,7 +2039,7 @@ static VOID mpt_StartOfdmContTx(
|
||||
} /* mpt_StartOfdmContTx */
|
||||
|
||||
|
||||
#if defined(CONFIG_RTL8814A) || defined(CONFIG_RTL8821B) || defined(CONFIG_RTL8822B) || defined(CONFIG_RTL8821C)
|
||||
//#if defined(CONFIG_RTL8814A) || defined(CONFIG_RTL8821B) || defined(CONFIG_RTL8822B) || defined(CONFIG_RTL8821C)
|
||||
/* for HW TX mode */
|
||||
void mpt_ProSetPMacTx(PADAPTER Adapter)
|
||||
{
|
||||
@ -2087,8 +2087,10 @@ void mpt_ProSetPMacTx(PADAPTER Adapter)
|
||||
mpt_StopCckContTx(Adapter);
|
||||
else
|
||||
mpt_StopOfdmContTx(Adapter);
|
||||
|
||||
#if defined(CONFIG_RTL8814A)
|
||||
if (IS_HARDWARE_TYPE_8814A(padapter))
|
||||
mpt_SetSingleTone_8814A(Adapter, FALSE, TRUE);
|
||||
#endif
|
||||
}
|
||||
|
||||
return;
|
||||
@ -2237,13 +2239,15 @@ void mpt_ProSetPMacTx(PADAPTER Adapter)
|
||||
phy_set_bb_reg(Adapter, 0xA84, BIT31, 0);
|
||||
} else
|
||||
phy_set_bb_reg(Adapter, 0xb04, 0xf, 4); /* TX Ofdm ON */
|
||||
|
||||
if (PMacTxInfo.Mode == OFDM_Single_Tone_TX)
|
||||
#if defined(CONFIG_RTL8814A)
|
||||
if (PMacTxInfo.Mode == OFDM_Single_Tone_TX) {
|
||||
if (IS_HARDWARE_TYPE_8814A(padapter))
|
||||
mpt_SetSingleTone_8814A(Adapter, TRUE, TRUE);
|
||||
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
//#endif
|
||||
|
||||
void hal_mpt_SetContinuousTx(PADAPTER pAdapter, u8 bStart)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user