1
0

021-04-rt2800-fix-mt7620-E2-channel-registers.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From c426cb0ed15ee12dfdc8c53ddd1449ac617023cf Mon Sep 17 00:00:00 2001
  2. From: Daniel Golle <daniel@makrotopia.org>
  3. Date: Tue, 18 Apr 2017 11:45:37 +0200
  4. Subject: [PATCH] rt2800: fix mt7620 E2 channel registers
  5. To: Stanislaw Gruszka <sgruszka@redhat.com>
  6. Cc: Helmut Schaa <helmut.schaa@googlemail.com>,
  7. linux-wireless@vger.kernel.org,
  8. Kalle Valo <kvalo@codeaurora.org>,
  9. Tom Psyborg <pozega.tomislav@gmail.com>
  10. From: Tomislav Požega <pozega.tomislav@gmail.com>
  11. update RF register 47 and 54 values according to vendor driver
  12. Signed-off-by: Tomislav Požega <pozega.tomislav@gmail.com>
  13. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
  14. ---
  15. drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 6 ++++--
  16. 1 file changed, 4 insertions(+), 2 deletions(-)
  17. diff --git a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
  18. index 86cffee6876a..8585cdc3de53 100644
  19. --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
  20. +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
  21. @@ -8145,9 +8145,11 @@ static void rt2800_init_rfcsr_6352(struct rt2x00_dev *rt2x00dev)
  22. rt2800_rfcsr_write_chanreg(rt2x00dev, 44, 0xB3);
  23. rt2800_rfcsr_write_chanreg(rt2x00dev, 45, 0xD5);
  24. rt2800_rfcsr_write_chanreg(rt2x00dev, 46, 0x27);
  25. - rt2800_rfcsr_write_chanreg(rt2x00dev, 47, 0x69);
  26. + rt2800_rfcsr_write_bank(rt2x00dev, 4, 47, 0x67);
  27. + rt2800_rfcsr_write_bank(rt2x00dev, 6, 47, 0x69);
  28. rt2800_rfcsr_write_chanreg(rt2x00dev, 48, 0xFF);
  29. - rt2800_rfcsr_write_chanreg(rt2x00dev, 54, 0x20);
  30. + rt2800_rfcsr_write_bank(rt2x00dev, 4, 54, 0x27);
  31. + rt2800_rfcsr_write_bank(rt2x00dev, 6, 54, 0x20);
  32. rt2800_rfcsr_write_chanreg(rt2x00dev, 55, 0x66);
  33. rt2800_rfcsr_write_chanreg(rt2x00dev, 56, 0xFF);
  34. rt2800_rfcsr_write_chanreg(rt2x00dev, 57, 0x1C);
  35. --
  36. 2.12.2