summaryrefslogtreecommitdiff
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
commit99698373f9c466aac5c3b28cbab2f798c4969497 (patch)
tree4ff0b02d2a2ab5d75b6d832f16313c3fe3b9236d /package/mac80211/patches/522-ath9k_pwrcal_fix.patch
parent3310fdf6fa79766b58ca5e0f419cb8ed966f9e89 (diff)
downloadmtk-20170518-99698373f9c466aac5c3b28cbab2f798c4969497.zip
mtk-20170518-99698373f9c466aac5c3b28cbab2f798c4969497.tar.gz
mtk-20170518-99698373f9c466aac5c3b28cbab2f798c4969497.tar.bz2
ath9k: add another batch of stability updates and misc fixes
SVN-Revision: 22123
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 0000000..6a41c9f
--- /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] +