600-0023-rt2x00-rt2800lib-hardcode-txmixer-gain-values-to-zer.patch 1020 B

123456789101112131415161718192021222324252627282930313233
  1. From caea0671cd8fd9ade4f5969cbe0ee545e94ae105 Mon Sep 17 00:00:00 2001
  2. From: Gabor Juhos <juhosg@openwrt.org>
  3. Date: Sat, 24 Aug 2013 11:49:55 +0200
  4. Subject: [PATCH] rt2x00: rt2800lib: hardcode txmixer gain values to zero for
  5. RT3883
  6. Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
  7. ---
  8. drivers/net/wireless/rt2x00/rt2800lib.c | 6 ++++--
  9. 1 file changed, 4 insertions(+), 2 deletions(-)
  10. --- a/drivers/net/wireless/rt2x00/rt2800lib.c
  11. +++ b/drivers/net/wireless/rt2x00/rt2800lib.c
  12. @@ -7486,7 +7486,8 @@ static u8 rt2800_get_txmixer_gain_24g(st
  13. {
  14. u16 word;
  15. - if (rt2x00_rt(rt2x00dev, RT3593))
  16. + if (rt2x00_rt(rt2x00dev, RT3593) ||
  17. + rt2x00_rt(rt2x00dev, RT3883))
  18. return 0;
  19. rt2800_eeprom_read(rt2x00dev, EEPROM_TXMIXER_GAIN_BG, &word);
  20. @@ -7500,7 +7501,8 @@ static u8 rt2800_get_txmixer_gain_5g(str
  21. {
  22. u16 word;
  23. - if (rt2x00_rt(rt2x00dev, RT3593))
  24. + if (rt2x00_rt(rt2x00dev, RT3593) ||
  25. + rt2x00_rt(rt2x00dev, RT3883))
  26. return 0;
  27. rt2800_eeprom_read(rt2x00dev, EEPROM_TXMIXER_GAIN_A, &word);