020-22-rt2800-do-VCO-calibration-after-programming-ALC.patch 1.1 KB

1234567891011121314151617181920212223242526272829
  1. From feb608c7986c14bab153f31f8e96f251072e6578 Mon Sep 17 00:00:00 2001
  2. From: Daniel Golle <[email protected]>
  3. Date: Mon, 10 Apr 2017 15:33:20 +0200
  4. Subject: [PATCH 2/2] rt2800: do VCO calibration after programming ALC
  5. To: Stanislaw Gruszka <[email protected]>
  6. Cc: Helmut Schaa <[email protected]>,
  7. [email protected],
  8. Kalle Valo <[email protected]>
  9. Scanning fails if we don't do VCO calibration every time.
  10. The vendor driver duplicates the VCO calibration function into the
  11. channel switching logic, we can do the same with less duplication.
  12. Signed-off-by: Daniel Golle <[email protected]>
  13. ---
  14. drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 2 ++
  15. 1 file changed, 2 insertions(+)
  16. --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
  17. +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
  18. @@ -3407,6 +3407,8 @@ static void rt2800_config_alc(struct rt2
  19. rt2800_rfcsr_write(rt2x00dev, 42, 0x5b);
  20. }
  21. rt2800_register_write(rt2x00dev, MAC_SYS_CTRL, mac_sys_ctrl);
  22. +
  23. + rt2800_vco_calibration(rt2x00dev);
  24. }
  25. static void rt2800_bbp_write_with_rx_chain(struct rt2x00_dev *rt2x00dev,