Hal_SetAntenna(): fix -Wswitch-unreachable

* Fixed unreachable switch in 8812au antenna
This commit is contained in:
Christian B 2017-12-10 17:59:26 +01:00 committed by GitHub
parent 2d6512e7c4
commit e0da194c36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -985,8 +985,9 @@ void mpt_SetRFPath_8812A(PADAPTER pAdapter)
} }
switch (ulAntennaRx) { switch (ulAntennaRx) {
u32 reg0xC50 = 0; u32 reg0xC50;
case ANTENNA_A: case ANTENNA_A:
reg0xC50 = 0;
PHY_SetBBReg(pAdapter, rRxPath_Jaguar, bMaskByte0, 0x11); PHY_SetBBReg(pAdapter, rRxPath_Jaguar, bMaskByte0, 0x11);
PHY_SetRFReg(pAdapter, ODM_RF_PATH_B, RF_AC_Jaguar, 0xF0000, 0x1); /*/ RF_B_0x0[19:16] = 1, Standby mode*/ PHY_SetRFReg(pAdapter, ODM_RF_PATH_B, RF_AC_Jaguar, 0xF0000, 0x1); /*/ RF_B_0x0[19:16] = 1, Standby mode*/
PHY_SetBBReg(pAdapter, rCCK_RX_Jaguar, bCCK_RX_Jaguar, 0x0); PHY_SetBBReg(pAdapter, rCCK_RX_Jaguar, bCCK_RX_Jaguar, 0x0);
@ -1013,6 +1014,7 @@ void mpt_SetRFPath_8812A(PADAPTER pAdapter)
} }
break; break;
case ANTENNA_B: case ANTENNA_B:
reg0xC50 = 0;
PHY_SetBBReg(pAdapter, rRxPath_Jaguar, bMaskByte0, 0x22); PHY_SetBBReg(pAdapter, rRxPath_Jaguar, bMaskByte0, 0x22);
PHY_SetRFReg(pAdapter, ODM_RF_PATH_A, RF_AC_Jaguar, 0xF0000, 0x1);/*/ RF_A_0x0[19:16] = 1, Standby mode */ PHY_SetRFReg(pAdapter, ODM_RF_PATH_A, RF_AC_Jaguar, 0xF0000, 0x1);/*/ RF_A_0x0[19:16] = 1, Standby mode */
PHY_SetBBReg(pAdapter, rCCK_RX_Jaguar, bCCK_RX_Jaguar, 0x1); PHY_SetBBReg(pAdapter, rCCK_RX_Jaguar, bCCK_RX_Jaguar, 0x1);