600-0022-rt2x00-rt2800lib-use-correct-txpower-calculation-fun.patch 876 B

1234567891011121314151617181920212223
  1. From c4d79e344bd580d85821390d49f92dced7d8e125 Mon Sep 17 00:00:00 2001
  2. From: Gabor Juhos <juhosg@openwrt.org>
  3. Date: Sun, 24 Mar 2013 19:26:29 +0100
  4. Subject: [PATCH] rt2x00: rt2800lib: use correct txpower calculation function
  5. for RT3883
  6. Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
  7. ---
  8. drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 3 ++-
  9. 1 file changed, 2 insertions(+), 1 deletion(-)
  10. --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
  11. +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
  12. @@ -4612,7 +4612,8 @@ static void rt2800_config_txpower(struct
  13. struct ieee80211_channel *chan,
  14. int power_level)
  15. {
  16. - if (rt2x00_rt(rt2x00dev, RT3593))
  17. + if (rt2x00_rt(rt2x00dev, RT3593) ||
  18. + rt2x00_rt(rt2x00dev, RT3883))
  19. rt2800_config_txpower_rt3593(rt2x00dev, chan, power_level);
  20. else
  21. rt2800_config_txpower_rt28xx(rt2x00dev, chan, power_level);