Skip to content

Commit 4bd96b5

Browse files
psyborg55Kalle Valo
authored andcommitted
rt2800: fix mt7620 vco calibration registers
Use register values from init LNA function instead of the ones from restore LNA function. Apply register values based on rx path configuration. Signed-off-by: Tomislav Požega <pozega.tomislav@gmail.com> Signed-off-by: Daniel Golle <daniel@makrotopia.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
1 parent 2031bad commit 4bd96b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4932,7 +4932,7 @@ void rt2800_vco_calibration(struct rt2x00_dev *rt2x00dev)
49324932
rt2800_register_write(rt2x00dev, TX_PIN_CFG, tx_pin);
49334933

49344934
if (rt2x00_rt(rt2x00dev, RT6352)) {
4935-
if (rt2x00dev->default_ant.tx_chain_num == 1) {
4935+
if (rt2x00dev->default_ant.rx_chain_num == 1) {
49364936
rt2800_bbp_write(rt2x00dev, 91, 0x07);
49374937
rt2800_bbp_write(rt2x00dev, 95, 0x1A);
49384938
rt2800_bbp_write(rt2x00dev, 195, 128);
@@ -4953,8 +4953,8 @@ void rt2800_vco_calibration(struct rt2x00_dev *rt2x00dev)
49534953
}
49544954

49554955
if (rt2x00_has_cap_external_lna_bg(rt2x00dev)) {
4956-
rt2800_bbp_write(rt2x00dev, 75, 0x60);
4957-
rt2800_bbp_write(rt2x00dev, 76, 0x44);
4956+
rt2800_bbp_write(rt2x00dev, 75, 0x68);
4957+
rt2800_bbp_write(rt2x00dev, 76, 0x4C);
49584958
rt2800_bbp_write(rt2x00dev, 79, 0x1C);
49594959
rt2800_bbp_write(rt2x00dev, 80, 0x0C);
49604960
rt2800_bbp_write(rt2x00dev, 82, 0xB6);

0 commit comments

Comments
 (0)