diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-10-04 06:34:14 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-10-04 06:34:14 +0000 |
commit | 1f8e2ccbc358340d4415ceb9d6d89a4caf49a8e4 (patch) | |
tree | e71dba3fcc88c58d74ffd7d0aa855b3feb0b3019 /package/mac80211/patches | |
parent | 1634efcda77933f95f9f094866aaacfd757654be (diff) | |
download | upstream-1f8e2ccbc358340d4415ceb9d6d89a4caf49a8e4.tar.gz upstream-1f8e2ccbc358340d4415ceb9d6d89a4caf49a8e4.tar.bz2 upstream-1f8e2ccbc358340d4415ceb9d6d89a4caf49a8e4.zip |
mac80211/rt2x00: fix lna assignment typo in Rt3352 which went upstream
Reviewing what went into wireless-testing I found a quite nasty mistake,
probably a result of copy&past'ing from the lines below in rt2800lib.c.
This adds another patch to fix that.
Signed-off-by: Daniel Golle <dgolle@allnet.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33616 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches')
-rw-r--r-- | package/mac80211/patches/621-rt2x00-fix-rt3352-lnagain.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/package/mac80211/patches/621-rt2x00-fix-rt3352-lnagain.patch b/package/mac80211/patches/621-rt2x00-fix-rt3352-lnagain.patch new file mode 100644 index 0000000000..824c3810db --- /dev/null +++ b/package/mac80211/patches/621-rt2x00-fix-rt3352-lnagain.patch @@ -0,0 +1,30 @@ +From d0ae5f33c0221339a50bd1005c569934417003a5 Mon Sep 17 00:00:00 2001 +From: Daniel Golle <dgolle@allnet.de> +Date: Thu, 4 Oct 2012 00:34:01 +0200 +Subject: [PATCH] rt2x00/rt3352: Fix lnagain assignment to use register 66. +To: users@rt2x00.serialmonkey.com +Cc: gwingerde@gmail.com + +--- + drivers/net/wireless/rt2x00/rt2800lib.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c +index 540c94f..01dc889 100644 +--- a/drivers/net/wireless/rt2x00/rt2800lib.c ++++ b/drivers/net/wireless/rt2x00/rt2800lib.c +@@ -2252,9 +2252,9 @@ static void rt2800_config_channel(struct rt2x00_dev *rt2x00dev, + */ + if (rt2x00_rt(rt2x00dev, RT3352)) { + rt2800_bbp_write(rt2x00dev, 27, 0x0); +- rt2800_bbp_write(rt2x00dev, 62, 0x26 + rt2x00dev->lna_gain); ++ rt2800_bbp_write(rt2x00dev, 66, 0x26 + rt2x00dev->lna_gain); + rt2800_bbp_write(rt2x00dev, 27, 0x20); +- rt2800_bbp_write(rt2x00dev, 62, 0x26 + rt2x00dev->lna_gain); ++ rt2800_bbp_write(rt2x00dev, 66, 0x26 + rt2x00dev->lna_gain); + } else { + rt2800_bbp_write(rt2x00dev, 62, 0x37 - rt2x00dev->lna_gain); + rt2800_bbp_write(rt2x00dev, 63, 0x37 - rt2x00dev->lna_gain); +-- +1.7.12.2 + |