mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2025-01-06 06:06:09 +00:00
Code cleanup
This commit is contained in:
parent
abc37bc4e4
commit
005d1b8117
@ -42,8 +42,7 @@ PHY_RF6052SetBandwidth8814A(
|
|||||||
IN PADAPTER Adapter,
|
IN PADAPTER Adapter,
|
||||||
IN CHANNEL_WIDTH Bandwidth) //20M or 40M
|
IN CHANNEL_WIDTH Bandwidth) //20M or 40M
|
||||||
{
|
{
|
||||||
switch(Bandwidth)
|
switch (Bandwidth) {
|
||||||
{
|
|
||||||
case CHANNEL_WIDTH_20:
|
case CHANNEL_WIDTH_20:
|
||||||
/*RTW_INFO("PHY_RF6052SetBandwidth8814A(), set 20MHz\n");*/
|
/*RTW_INFO("PHY_RF6052SetBandwidth8814A(), set 20MHz\n");*/
|
||||||
PHY_SetRFReg(Adapter, RF_PATH_A, RF_CHNLBW_Jaguar, BIT11|BIT10, 3);
|
PHY_SetRFReg(Adapter, RF_PATH_A, RF_CHNLBW_Jaguar, BIT11|BIT10, 3);
|
||||||
@ -101,18 +100,16 @@ phy_RF6052_Config_ParaFile_8814A(
|
|||||||
//3// <2> Initialize RF
|
//3// <2> Initialize RF
|
||||||
//3//-----------------------------------------------------------------
|
//3//-----------------------------------------------------------------
|
||||||
//for(eRFPath = RF_PATH_A; eRFPath <pHalData->NumTotalRFPath; eRFPath++)
|
//for(eRFPath = RF_PATH_A; eRFPath <pHalData->NumTotalRFPath; eRFPath++)
|
||||||
for(eRFPath = 0; eRFPath <pHalData->NumTotalRFPath; eRFPath++)
|
for (eRFPath = 0; eRFPath <pHalData->NumTotalRFPath; eRFPath++) {
|
||||||
{
|
|
||||||
/*----Initialize RF fom connfiguration file----*/
|
/*----Initialize RF fom connfiguration file----*/
|
||||||
switch(eRFPath)
|
switch (eRFPath) {
|
||||||
{
|
|
||||||
case RF_PATH_A:
|
case RF_PATH_A:
|
||||||
#ifdef CONFIG_LOAD_PHY_PARA_FROM_FILE
|
#ifdef CONFIG_LOAD_PHY_PARA_FROM_FILE
|
||||||
if (PHY_ConfigRFWithParaFile(Adapter, pszRadioAFile, eRFPath) == _FAIL)
|
if (PHY_ConfigRFWithParaFile(Adapter, pszRadioAFile, eRFPath) == _FAIL)
|
||||||
#endif //CONFIG_LOAD_PHY_PARA_FROM_FILE
|
#endif //CONFIG_LOAD_PHY_PARA_FROM_FILE
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_EMBEDDED_FWIMG
|
#ifdef CONFIG_EMBEDDED_FWIMG
|
||||||
if(HAL_STATUS_FAILURE ==ODM_ConfigRFWithHeaderFile(&pHalData->odmpriv,CONFIG_RF_RADIO, (ODM_RF_RADIO_PATH_E)eRFPath))
|
if (HAL_STATUS_FAILURE ==ODM_ConfigRFWithHeaderFile(&pHalData->odmpriv,CONFIG_RF_RADIO, (ODM_RF_RADIO_PATH_E)eRFPath))
|
||||||
rtStatus = _FAIL;
|
rtStatus = _FAIL;
|
||||||
#endif //CONFIG_EMBEDDED_FWIMG
|
#endif //CONFIG_EMBEDDED_FWIMG
|
||||||
}
|
}
|
||||||
@ -123,7 +120,7 @@ phy_RF6052_Config_ParaFile_8814A(
|
|||||||
#endif //CONFIG_LOAD_PHY_PARA_FROM_FILE
|
#endif //CONFIG_LOAD_PHY_PARA_FROM_FILE
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_EMBEDDED_FWIMG
|
#ifdef CONFIG_EMBEDDED_FWIMG
|
||||||
if(HAL_STATUS_FAILURE ==ODM_ConfigRFWithHeaderFile(&pHalData->odmpriv,CONFIG_RF_RADIO, (ODM_RF_RADIO_PATH_E)eRFPath))
|
if (HAL_STATUS_FAILURE ==ODM_ConfigRFWithHeaderFile(&pHalData->odmpriv,CONFIG_RF_RADIO, (ODM_RF_RADIO_PATH_E)eRFPath))
|
||||||
rtStatus = _FAIL;
|
rtStatus = _FAIL;
|
||||||
#endif //CONFIG_EMBEDDED_FWIMG
|
#endif //CONFIG_EMBEDDED_FWIMG
|
||||||
}
|
}
|
||||||
@ -134,7 +131,7 @@ phy_RF6052_Config_ParaFile_8814A(
|
|||||||
#endif //CONFIG_LOAD_PHY_PARA_FROM_FILE
|
#endif //CONFIG_LOAD_PHY_PARA_FROM_FILE
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_EMBEDDED_FWIMG
|
#ifdef CONFIG_EMBEDDED_FWIMG
|
||||||
if(HAL_STATUS_FAILURE ==ODM_ConfigRFWithHeaderFile(&pHalData->odmpriv,CONFIG_RF_RADIO, (ODM_RF_RADIO_PATH_E)eRFPath))
|
if (HAL_STATUS_FAILURE ==ODM_ConfigRFWithHeaderFile(&pHalData->odmpriv,CONFIG_RF_RADIO, (ODM_RF_RADIO_PATH_E)eRFPath))
|
||||||
rtStatus = _FAIL;
|
rtStatus = _FAIL;
|
||||||
#endif //CONFIG_EMBEDDED_FWIMG
|
#endif //CONFIG_EMBEDDED_FWIMG
|
||||||
}
|
}
|
||||||
@ -154,7 +151,7 @@ phy_RF6052_Config_ParaFile_8814A(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(rtStatus != _SUCCESS){
|
if (rtStatus != _SUCCESS) {
|
||||||
RTW_INFO("%s():Radio[%d] Fail!!", __FUNCTION__, eRFPath);
|
RTW_INFO("%s():Radio[%d] Fail!!", __FUNCTION__, eRFPath);
|
||||||
goto phy_RF6052_Config_ParaFile_Fail;
|
goto phy_RF6052_Config_ParaFile_Fail;
|
||||||
}
|
}
|
||||||
@ -185,7 +182,6 @@ phy_RF6052_Config_ParaFile_Fail:
|
|||||||
return rtStatus;
|
return rtStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
PHY_RF6052_Config_8814A(
|
PHY_RF6052_Config_8814A(
|
||||||
IN PADAPTER Adapter)
|
IN PADAPTER Adapter)
|
||||||
@ -205,6 +201,4 @@ PHY_RF6052_Config_8814A(
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* End of HalRf6052.c */
|
/* End of HalRf6052.c */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user