summaryrefslogtreecommitdiff
path: root/package/mac80211/patches/583-ath9k-fix-RF-channel-frequency-configuration-for-AR9.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/mac80211/patches/583-ath9k-fix-RF-channel-frequency-configuration-for-AR9.patch')
-rw-r--r--package/mac80211/patches/583-ath9k-fix-RF-channel-frequency-configuration-for-AR9.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/package/mac80211/patches/583-ath9k-fix-RF-channel-frequency-configuration-for-AR9.patch b/package/mac80211/patches/583-ath9k-fix-RF-channel-frequency-configuration-for-AR9.patch
new file mode 100644
index 0000000000..b191bfd22e
--- /dev/null
+++ b/package/mac80211/patches/583-ath9k-fix-RF-channel-frequency-configuration-for-AR9.patch
@@ -0,0 +1,32 @@
+From 5e08c36e3ef57712fee83248d0db3d2837e13f5f Mon Sep 17 00:00:00 2001
+From: Gabor Juhos <juhosg@openwrt.org>
+Date: Mon, 2 Jul 2012 17:15:58 +0200
+Subject: [PATCH 14/20] ath9k: fix RF channel frequency configuration for AR9550
+
+Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
+Acked-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
+---
+ drivers/net/wireless/ath/ath9k/ar9003_phy.c | 5 +++--
+ 1 files changed, 3 insertions(+), 2 deletions(-)
+
+--- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c
++++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c
+@@ -99,7 +99,7 @@ static int ar9003_hw_set_channel(struct
+ channelSel = (freq * 4) / 120;
+ chan_frac = (((freq * 4) % 120) * 0x20000) / 120;
+ channelSel = (channelSel << 17) | chan_frac;
+- } else if (AR_SREV_9340(ah)) {
++ } else if (AR_SREV_9340(ah) || AR_SREV_9550(ah)) {
+ if (ah->is_clk_25mhz) {
+ u32 chan_frac;
+
+@@ -113,7 +113,8 @@ static int ar9003_hw_set_channel(struct
+ /* Set to 2G mode */
+ bMode = 1;
+ } else {
+- if (AR_SREV_9340(ah) && ah->is_clk_25mhz) {
++ if ((AR_SREV_9340(ah) || AR_SREV_9550(ah)) &&
++ ah->is_clk_25mhz) {
+ u32 chan_frac;
+
+ channelSel = (freq * 2) / 75;