Skip to content

Commit 50da74e

Browse files
DragonBluepKalle Valo
authored andcommitted
wifi: rt2x00: correct wrong BBP register in RxDCOC calibration
Refer to Mediatek vendor driver RxDCOC_Calibration() function, when performing gainfreeze calibration, we should write register 140 instead of 141. This fix can reduce the total calibration time from 6 seconds to 1 second. Signed-off-by: Shiji Yang <[email protected]> Acked-by: Stanislaw Gruszka <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/TYAP286MB0315B13B89DF57B6B27BB854BCAFA@TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM
1 parent 8170b04 commit 50da74e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/wireless/ralink/rt2x00/rt2800lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8711,7 +8711,7 @@ static void rt2800_rxdcoc_calibration(struct rt2x00_dev *rt2x00dev)
87118711
rt2800_rfcsr_write_bank(rt2x00dev, 5, 4, saverfb5r4);
87128712
rt2800_rfcsr_write_bank(rt2x00dev, 7, 4, saverfb7r4);
87138713

8714-
rt2800_bbp_write(rt2x00dev, 158, 141);
8714+
rt2800_bbp_write(rt2x00dev, 158, 140);
87158715
bbpreg = rt2800_bbp_read(rt2x00dev, 159);
87168716
bbpreg = bbpreg & (~0x40);
87178717
rt2800_bbp_write(rt2x00dev, 159, bbpreg);

0 commit comments

Comments
 (0)