020-23-rt2800-fix-mt7620-vco-calibration-registers.patch 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. From 02c452f317b4a4d06c433c294e66896a389731c1 Mon Sep 17 00:00:00 2001
  2. From: Daniel Golle <[email protected]>
  3. Date: Tue, 18 Apr 2017 11:09:53 +0200
  4. Subject: [PATCH] rt2800: fix mt7620 vco calibration registers
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. To: Stanislaw Gruszka <[email protected]>
  9. Cc: Helmut Schaa <[email protected]>,
  10. [email protected],
  11. Kalle Valo <[email protected]>,
  12. Tom Psyborg <[email protected]>
  13. Use register values from init LNA function instead of the ones from
  14. restore LNA function. Apply register values based on rx path
  15. configuration.
  16. Signed-off-by: Tomislav Požega <[email protected]>
  17. Signed-off-by: Daniel Golle <[email protected]>
  18. ---
  19. drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 6 +++---
  20. 1 file changed, 3 insertions(+), 3 deletions(-)
  21. --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
  22. +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
  23. @@ -4932,7 +4932,7 @@ void rt2800_vco_calibration(struct rt2x0
  24. rt2800_register_write(rt2x00dev, TX_PIN_CFG, tx_pin);
  25. if (rt2x00_rt(rt2x00dev, RT6352)) {
  26. - if (rt2x00dev->default_ant.tx_chain_num == 1) {
  27. + if (rt2x00dev->default_ant.rx_chain_num == 1) {
  28. rt2800_bbp_write(rt2x00dev, 91, 0x07);
  29. rt2800_bbp_write(rt2x00dev, 95, 0x1A);
  30. rt2800_bbp_write(rt2x00dev, 195, 128);
  31. @@ -4953,8 +4953,8 @@ void rt2800_vco_calibration(struct rt2x0
  32. }
  33. if (rt2x00_has_cap_external_lna_bg(rt2x00dev)) {
  34. - rt2800_bbp_write(rt2x00dev, 75, 0x60);
  35. - rt2800_bbp_write(rt2x00dev, 76, 0x44);
  36. + rt2800_bbp_write(rt2x00dev, 75, 0x68);
  37. + rt2800_bbp_write(rt2x00dev, 76, 0x4C);
  38. rt2800_bbp_write(rt2x00dev, 79, 0x1C);
  39. rt2800_bbp_write(rt2x00dev, 80, 0x0C);
  40. rt2800_bbp_write(rt2x00dev, 82, 0xB6);