diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-07-03 18:05:04 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-07-03 18:05:04 +0000 |
commit | f410ca3e6d47b0e81526d75ecaf4890ec7e74743 (patch) | |
tree | 7e0e982db19910fa30396796ccef7d1ad60dd7ea /package/mac80211/patches/581-ath9k-fix-antenna-control-configuration-for-AR9550.patch | |
parent | 1f88d93e7e8a850094894ffb2cc76eacdddec33a (diff) | |
download | master-187ad058-f410ca3e6d47b0e81526d75ecaf4890ec7e74743.tar.gz master-187ad058-f410ca3e6d47b0e81526d75ecaf4890ec7e74743.tar.bz2 master-187ad058-f410ca3e6d47b0e81526d75ecaf4890ec7e74743.zip |
mac80211: add support for AR9550
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32588 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/581-ath9k-fix-antenna-control-configuration-for-AR9550.patch')
-rw-r--r-- | package/mac80211/patches/581-ath9k-fix-antenna-control-configuration-for-AR9550.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/package/mac80211/patches/581-ath9k-fix-antenna-control-configuration-for-AR9550.patch b/package/mac80211/patches/581-ath9k-fix-antenna-control-configuration-for-AR9550.patch new file mode 100644 index 0000000000..324e3a0a9b --- /dev/null +++ b/package/mac80211/patches/581-ath9k-fix-antenna-control-configuration-for-AR9550.patch @@ -0,0 +1,35 @@ +From 48032d5c88c936fc84a2d676474c5fe714d8ef94 Mon Sep 17 00:00:00 2001 +From: Gabor Juhos <juhosg@openwrt.org> +Date: Mon, 2 Jul 2012 17:15:58 +0200 +Subject: [PATCH 12/20] ath9k: fix antenna control 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_eeprom.c | 3 +++ + drivers/net/wireless/ath/ath9k/ar9003_phy.h | 2 ++ + 2 files changed, 5 insertions(+), 0 deletions(-) + +--- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c ++++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c +@@ -3601,6 +3601,9 @@ static void ar9003_hw_ant_ctrl_apply(str + if (AR_SREV_9462(ah)) { + REG_RMW_FIELD(ah, AR_PHY_SWITCH_COM, + AR_SWITCH_TABLE_COM_AR9462_ALL, value); ++ } else if (AR_SREV_9550(ah)) { ++ REG_RMW_FIELD(ah, AR_PHY_SWITCH_COM, ++ AR_SWITCH_TABLE_COM_AR9550_ALL, value); + } else + REG_RMW_FIELD(ah, AR_PHY_SWITCH_COM, + AR_SWITCH_TABLE_COM_ALL, value); +--- a/drivers/net/wireless/ath/ath9k/ar9003_phy.h ++++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.h +@@ -650,6 +650,8 @@ + #define AR_SWITCH_TABLE_COM_ALL_S (0) + #define AR_SWITCH_TABLE_COM_AR9462_ALL (0xffffff) + #define AR_SWITCH_TABLE_COM_AR9462_ALL_S (0) ++#define AR_SWITCH_TABLE_COM_AR9550_ALL (0xffffff) ++#define AR_SWITCH_TABLE_COM_AR9550_ALL_S (0) + #define AR_SWITCH_TABLE_COM_SPDT (0x00f00000) + #define AR_SWITCH_TABLE_COM_SPDT_ALL (0x0000fff0) + #define AR_SWITCH_TABLE_COM_SPDT_ALL_S (4) |