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

Merge pull request #214 from kimocoder/v5.3.4

fixed compilation error if rtl8814 is not enabled in the Makefile
This commit is contained in:
Christian B 2018-10-07 22:37:45 +02:00 committed by GitHub
commit 17368701c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1732,8 +1732,8 @@ void hal_mpt_SetSingleToneTx(PADAPTER pAdapter, u8 bStart)
#endif #endif
} }
#if defined(CONFIG_RTL8814A) #if defined(CONFIG_RTL8814A)
else if (IS_HARDWARE_TYPE_8814A(pAdapter)) else if (IS_HARDWARE_TYPE_8814A(pAdapter))
mpt_SetSingleTone_8814A(pAdapter, TRUE, FALSE); mpt_SetSingleTone_8814A(pAdapter, TRUE, FALSE);
#endif #endif
else /*/ Turn On SingleTone and turn off the other test modes.*/ else /*/ Turn On SingleTone and turn off the other test modes.*/
phy_set_bb_reg(pAdapter, rOFDM1_LSTF, BIT30 | BIT29 | BIT28, OFDM_SingleTone); phy_set_bb_reg(pAdapter, rOFDM1_LSTF, BIT30 | BIT29 | BIT28, OFDM_SingleTone);
@ -1817,10 +1817,10 @@ void hal_mpt_SetSingleToneTx(PADAPTER pAdapter, u8 bStart)
#if defined(CONFIG_RTL8814A) #if defined(CONFIG_RTL8814A)
else if (IS_HARDWARE_TYPE_8814A(pAdapter)) else if (IS_HARDWARE_TYPE_8814A(pAdapter))
mpt_SetSingleTone_8814A(pAdapter, FALSE, FALSE); mpt_SetSingleTone_8814A(pAdapter, FALSE, FALSE);
#endif
else/*/ Turn off all test modes.*/ else/*/ Turn off all test modes.*/
phy_set_bb_reg(pAdapter, rSingleTone_ContTx_Jaguar, BIT18 | BIT17 | BIT16, OFDM_ALL_OFF); 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_XA_HSSIParameter1, bMaskDWord, 0x01000100);
write_bbreg(pAdapter, rFPGA0_XB_HSSIParameter1, bMaskDWord, 0x01000100); write_bbreg(pAdapter, rFPGA0_XB_HSSIParameter1, bMaskDWord, 0x01000100);
@ -2039,7 +2039,7 @@ static VOID mpt_StartOfdmContTx(
} /* 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 */ /* for HW TX mode */
void mpt_ProSetPMacTx(PADAPTER Adapter) void mpt_ProSetPMacTx(PADAPTER Adapter)
{ {
@ -2087,8 +2087,10 @@ void mpt_ProSetPMacTx(PADAPTER Adapter)
mpt_StopCckContTx(Adapter); mpt_StopCckContTx(Adapter);
else else
mpt_StopOfdmContTx(Adapter); mpt_StopOfdmContTx(Adapter);
#if defined(CONFIG_RTL8814A)
mpt_SetSingleTone_8814A(Adapter, FALSE, TRUE); if (IS_HARDWARE_TYPE_8814A(padapter))
mpt_SetSingleTone_8814A(Adapter, FALSE, TRUE);
#endif
} }
return; return;
@ -2237,13 +2239,15 @@ void mpt_ProSetPMacTx(PADAPTER Adapter)
phy_set_bb_reg(Adapter, 0xA84, BIT31, 0); phy_set_bb_reg(Adapter, 0xA84, BIT31, 0);
} else } else
phy_set_bb_reg(Adapter, 0xb04, 0xf, 4); /* TX Ofdm ON */ phy_set_bb_reg(Adapter, 0xb04, 0xf, 4); /* TX Ofdm ON */
#if defined(CONFIG_RTL8814A)
if (PMacTxInfo.Mode == OFDM_Single_Tone_TX) if (PMacTxInfo.Mode == OFDM_Single_Tone_TX) {
mpt_SetSingleTone_8814A(Adapter, TRUE, TRUE); if (IS_HARDWARE_TYPE_8814A(padapter))
mpt_SetSingleTone_8814A(Adapter, TRUE, TRUE);
}
#endif
} }
#endif //#endif
void hal_mpt_SetContinuousTx(PADAPTER pAdapter, u8 bStart) void hal_mpt_SetContinuousTx(PADAPTER pAdapter, u8 bStart)
{ {