summaryrefslogtreecommitdiff
path: root/package/mac80211/patches/531-ath9k_paprd_rate_mask.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-12-18 02:00:10 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-12-18 02:00:10 +0000
commitb51a9f924822628d92ffeedd88c27857474f10fc (patch)
treefecc283414d7664c23337677221d0a231d1399e6 /package/mac80211/patches/531-ath9k_paprd_rate_mask.patch
parent29379780a6ba1509e1df5a86b4cabed8ceefbbc7 (diff)
downloadmtk-20170518-b51a9f924822628d92ffeedd88c27857474f10fc.zip
mtk-20170518-b51a9f924822628d92ffeedd88c27857474f10fc.tar.gz
mtk-20170518-b51a9f924822628d92ffeedd88c27857474f10fc.tar.bz2
mac80211: update to wireless-testing 2010-12-16
SVN-Revision: 24655
Diffstat (limited to 'package/mac80211/patches/531-ath9k_paprd_rate_mask.patch')
-rw-r--r--package/mac80211/patches/531-ath9k_paprd_rate_mask.patch28
1 files changed, 0 insertions, 28 deletions
diff --git a/package/mac80211/patches/531-ath9k_paprd_rate_mask.patch b/package/mac80211/patches/531-ath9k_paprd_rate_mask.patch
deleted file mode 100644
index 153fb90..0000000
--- a/package/mac80211/patches/531-ath9k_paprd_rate_mask.patch
+++ /dev/null
@@ -1,28 +0,0 @@
---- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.h
-+++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.h
-@@ -31,6 +31,12 @@
- #define AR9300_ANT_16S 25
- #define AR9300_FUTURE_MODAL_SZ 6
-
-+#define AR9300_PAPRD_RATE_MASK 0x01ffffff
-+#define AR9300_PAPRD_SCALE_1 0x0e000000
-+#define AR9300_PAPRD_SCALE_1_S 25
-+#define AR9300_PAPRD_SCALE_2 0x70000000
-+#define AR9300_PAPRD_SCALE_2_S 28
-+
- /* Delta from which to start power to pdadc table */
- /* This offset is used in both open loop and closed loop power control
- * schemes. In open loop power control, it is not really needed, but for
---- a/drivers/net/wireless/ath/ath9k/ar9003_paprd.c
-+++ b/drivers/net/wireless/ath/ath9k/ar9003_paprd.c
-@@ -52,8 +52,8 @@ static void ar9003_paprd_setup_single_ta
- else
- hdr = &eep->modalHeader2G;
-
-- am_mask = le32_to_cpu(hdr->papdRateMaskHt20);
-- ht40_mask = le32_to_cpu(hdr->papdRateMaskHt40);
-+ am_mask = le32_to_cpu(hdr->papdRateMaskHt20) & AR9300_PAPRD_RATE_MASK;
-+ ht40_mask = le32_to_cpu(hdr->papdRateMaskHt40) & AR9300_PAPRD_RATE_MASK;
-
- REG_RMW_FIELD(ah, AR_PHY_PAPRD_AM2AM, AR_PHY_PAPRD_AM2AM_MASK, am_mask);
- REG_RMW_FIELD(ah, AR_PHY_PAPRD_AM2PM, AR_PHY_PAPRD_AM2PM_MASK, am_mask);