aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-01-23 18:25:45 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-01-23 18:25:45 +0000
commit1089b3213d5f1db9c1febb66ff1ab97284e434ae (patch)
tree813439646b2fef5bf99bacb99b836391dd2dc012 /package/mac80211/patches
parent74d986abeb47c5230e1d456f2d61f52d63996a48 (diff)
downloadupstream-1089b3213d5f1db9c1febb66ff1ab97284e434ae.tar.gz
upstream-1089b3213d5f1db9c1febb66ff1ab97284e434ae.tar.bz2
upstream-1089b3213d5f1db9c1febb66ff1ab97284e434ae.zip
ath9k: fix an initialization error on 2GHz-only cards (based on discussion on ath9k-devel@)
SVN-Revision: 19296
Diffstat (limited to 'package/mac80211/patches')
-rw-r--r--package/mac80211/patches/590-ath9k_init_fix.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/package/mac80211/patches/590-ath9k_init_fix.patch b/package/mac80211/patches/590-ath9k_init_fix.patch
new file mode 100644
index 0000000000..440524cc95
--- /dev/null
+++ b/package/mac80211/patches/590-ath9k_init_fix.patch
@@ -0,0 +1,26 @@
+--- a/drivers/net/wireless/ath/ath9k/hw.c
++++ b/drivers/net/wireless/ath/ath9k/hw.c
+@@ -823,12 +823,11 @@ static void ath9k_hw_init_mode_gain_regs
+ }
+ }
+
+-static void ath9k_hw_init_11a_eeprom_fix(struct ath_hw *ah)
++static void ath9k_hw_init_eeprom_fix(struct ath_hw *ah)
+ {
+ u32 i, j;
+
+- if ((ah->hw_version.devid == AR9280_DEVID_PCI) &&
+- test_bit(ATH9K_MODE_11A, ah->caps.wireless_modes)) {
++ if (ah->hw_version.devid == AR9280_DEVID_PCI) {
+
+ /* EEPROM Fixup */
+ for (i = 0; i < ah->iniModes.ia_rows; i++) {
+@@ -948,7 +947,7 @@ int ath9k_hw_init(struct ath_hw *ah)
+ if (r)
+ return r;
+
+- ath9k_hw_init_11a_eeprom_fix(ah);
++ ath9k_hw_init_eeprom_fix(ah);
+
+ r = ath9k_hw_init_macaddr(ah);
+ if (r) {