aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/522-ath9k_pwrcal_fix.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-07-11 03:50:46 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-07-11 03:50:46 +0000
commit1f4a550847316d9c238e631b6164381b8b07394a (patch)
tree644acbdd6ddac63ffee535ab141f4382e6047ae2 /package/mac80211/patches/522-ath9k_pwrcal_fix.patch
parent422138d2f330aefc2147cce89f8fb0f4b484086b (diff)
downloadupstream-1f4a550847316d9c238e631b6164381b8b07394a.tar.gz
upstream-1f4a550847316d9c238e631b6164381b8b07394a.tar.bz2
upstream-1f4a550847316d9c238e631b6164381b8b07394a.zip
ath9k: add another batch of stability updates and misc fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22123 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/522-ath9k_pwrcal_fix.patch')
-rw-r--r--package/mac80211/patches/522-ath9k_pwrcal_fix.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/mac80211/patches/522-ath9k_pwrcal_fix.patch b/package/mac80211/patches/522-ath9k_pwrcal_fix.patch
new file mode 100644
index 0000000000..6a41c9f88b
--- /dev/null
+++ b/package/mac80211/patches/522-ath9k_pwrcal_fix.patch
@@ -0,0 +1,11 @@
+--- a/drivers/net/wireless/ath/ath9k/eeprom_def.c
++++ b/drivers/net/wireless/ath/ath9k/eeprom_def.c
+@@ -730,7 +730,7 @@ static void ath9k_hw_get_def_gain_bounda
+ vpdTableI[i][sizeCurrVpdTable - 2]);
+ vpdStep = (int16_t)((vpdStep < 1) ? 1 : vpdStep);
+
+- if (tgtIndex > maxIndex) {
++ if (tgtIndex >= maxIndex) {
+ while ((ss <= tgtIndex) &&
+ (k < (AR5416_NUM_PDADC_VALUES - 1))) {
+ tmpVal = (int16_t)((vpdTableI[i][sizeCurrVpdTable - 1] +