mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-22 21:34:37 +00:00
Merge pull request #767 from pprindeville/issue#766
issue 766: fix warnings about 'statement with no effect'
This commit is contained in:
commit
d1602147a1
@ -914,7 +914,7 @@ mpt_SetSingleTone_8814A(
|
|||||||
|
|
||||||
phy_set_bb_reg(pAdapter, rCCAonSec_Jaguar, BIT1, 0x1); /*/ Disable CCA*/
|
phy_set_bb_reg(pAdapter, rCCAonSec_Jaguar, BIT1, 0x1); /*/ Disable CCA*/
|
||||||
|
|
||||||
for (StartPath; StartPath <= EndPath; StartPath++) {
|
for (; StartPath <= EndPath; StartPath++) {
|
||||||
phy_set_rf_reg(pAdapter, StartPath, RF_AC_Jaguar, 0xF0000, 0x2); /*/ Tx mode: RF0x00[19:16]=4'b0010 */
|
phy_set_rf_reg(pAdapter, StartPath, RF_AC_Jaguar, 0xF0000, 0x2); /*/ Tx mode: RF0x00[19:16]=4'b0010 */
|
||||||
phy_set_rf_reg(pAdapter, StartPath, RF_AC_Jaguar, 0x1F, 0x0); /*/ Lowest RF gain index: RF_0x0[4:0] = 0*/
|
phy_set_rf_reg(pAdapter, StartPath, RF_AC_Jaguar, 0x1F, 0x0); /*/ Lowest RF gain index: RF_0x0[4:0] = 0*/
|
||||||
|
|
||||||
@ -952,7 +952,7 @@ mpt_SetSingleTone_8814A(
|
|||||||
EndPath = RF_PATH_D;
|
EndPath = RF_PATH_D;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
for (StartPath; StartPath <= EndPath; StartPath++)
|
for (; StartPath <= EndPath; StartPath++)
|
||||||
phy_set_rf_reg(pAdapter, StartPath, lna_low_gain_3, BIT1, 0x0); /* RF LO disabled */
|
phy_set_rf_reg(pAdapter, StartPath, lna_low_gain_3, BIT1, 0x0); /* RF LO disabled */
|
||||||
|
|
||||||
phy_set_bb_reg(pAdapter, rCCAonSec_Jaguar, BIT1, 0x0); /* Enable CCA*/
|
phy_set_bb_reg(pAdapter, rCCAonSec_Jaguar, BIT1, 0x0); /* Enable CCA*/
|
||||||
|
Loading…
Reference in New Issue
Block a user