Skip to content

Commit

Permalink
Update rtl8812a_hal_init.c
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed May 6, 2024
1 parent a26ef83 commit 278ae51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hal/rtl8812a/rtl8812a_hal_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,7 @@ hal_ReadPAType_8812A(
pHalData->PAType_5G = ReadLE1Byte(&PROMContent[EEPROM_PA_TYPE_8812AU]);
pHalData->LNAType_5G = ReadLE1Byte(&PROMContent[EEPROM_LNA_TYPE_5G_8812AU]);
if (pHalData->PAType_5G == 0xFF)
pHalData->PAType_5G = 0;
pHalData->PAType_5G = 1;
if (pHalData->LNAType_5G == 0xFF)
pHalData->LNAType_5G = 0;

Expand All @@ -1175,8 +1175,8 @@ hal_ReadPAType_8812A(
pHalData->ExternalLNA_2G = (GetRegAmplifierType2G(Adapter) & ODM_BOARD_EXT_LNA) ? 1 : 0;
}
if (GetRegAmplifierType5G(Adapter) == 0) { /* AUTO */
pHalData->external_pa_5g = 1;
pHalData->external_lna_5g = 1;
pHalData->external_pa_5g = 0;
pHalData->external_lna_5g = 0;
} else {
pHalData->external_pa_5g = (GetRegAmplifierType5G(Adapter) & ODM_BOARD_EXT_PA_5G) ? 1 : 0;
pHalData->external_lna_5g = (GetRegAmplifierType5G(Adapter) & ODM_BOARD_EXT_LNA_5G) ? 1 : 0;
Expand Down

0 comments on commit 278ae51

Please sign in to comment.