020-18-rt2x00-fix-TX_PWR_CFG_4-register-definition.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From 5ce33b603063f36272fcfb1b4a5fde69f46eca88 Mon Sep 17 00:00:00 2001
  2. From: Daniel Golle <daniel@makrotopia.org>
  3. Date: Thu, 9 Mar 2017 00:54:22 +0100
  4. Subject: [PATCH 18/19] rt2x00: fix TX_PWR_CFG_4 register definition
  5. Some of the macros used to describe the TX_PWR_CFG_4 register accidentally
  6. refer to TX_PWR_CFG_3, probably a copy&paste error. Fix that.
  7. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
  8. Acked-by: Stanislaw Gruszka <sgruszka@redhat.com>
  9. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  10. ---
  11. drivers/net/wireless/ralink/rt2x00/rt2800.h | 8 ++++----
  12. 1 file changed, 4 insertions(+), 4 deletions(-)
  13. diff --git a/drivers/net/wireless/ralink/rt2x00/rt2800.h b/drivers/net/wireless/ralink/rt2x00/rt2800.h
  14. index 480b08601785..fd1dbd956bad 100644
  15. --- a/drivers/net/wireless/ralink/rt2x00/rt2800.h
  16. +++ b/drivers/net/wireless/ralink/rt2x00/rt2800.h
  17. @@ -1171,10 +1171,10 @@
  18. #define TX_PWR_CFG_4_UKNOWN7 FIELD32(0x00000f00)
  19. #define TX_PWR_CFG_4_UKNOWN8 FIELD32(0x0000f000)
  20. /* bits for 3T devices */
  21. -#define TX_PWR_CFG_3_STBC4_CH0 FIELD32(0x0000000f)
  22. -#define TX_PWR_CFG_3_STBC4_CH1 FIELD32(0x000000f0)
  23. -#define TX_PWR_CFG_3_STBC6_CH0 FIELD32(0x00000f00)
  24. -#define TX_PWR_CFG_3_STBC6_CH1 FIELD32(0x0000f000)
  25. +#define TX_PWR_CFG_4_STBC4_CH0 FIELD32(0x0000000f)
  26. +#define TX_PWR_CFG_4_STBC4_CH1 FIELD32(0x000000f0)
  27. +#define TX_PWR_CFG_4_STBC6_CH0 FIELD32(0x00000f00)
  28. +#define TX_PWR_CFG_4_STBC6_CH1 FIELD32(0x0000f000)
  29. /*
  30. * TX_PIN_CFG:
  31. --
  32. 2.12.1