aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/564-ath9k_fix_ani_update.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-06-27 02:15:25 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-06-27 02:15:25 +0000
commita756311f34dd275476159c62580173d5a434c23f (patch)
tree7f9e0b469befc4cc0ad97ff5eb75a5b7c7668557 /package/mac80211/patches/564-ath9k_fix_ani_update.patch
parent72eebfea76f4e2d21036e17e195dbd48a4b4faf4 (diff)
downloadupstream-a756311f34dd275476159c62580173d5a434c23f.tar.gz
upstream-a756311f34dd275476159c62580173d5a434c23f.tar.bz2
upstream-a756311f34dd275476159c62580173d5a434c23f.zip
ath9k: more ani fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32510 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/564-ath9k_fix_ani_update.patch')
-rw-r--r--package/mac80211/patches/564-ath9k_fix_ani_update.patch59
1 files changed, 59 insertions, 0 deletions
diff --git a/package/mac80211/patches/564-ath9k_fix_ani_update.patch b/package/mac80211/patches/564-ath9k_fix_ani_update.patch
new file mode 100644
index 0000000000..91ba67db7b
--- /dev/null
+++ b/package/mac80211/patches/564-ath9k_fix_ani_update.patch
@@ -0,0 +1,59 @@
+--- a/drivers/net/wireless/ath/ath9k/ani.c
++++ b/drivers/net/wireless/ath/ath9k/ani.c
+@@ -153,9 +153,7 @@ static void ath9k_hw_set_ofdm_nil(struct
+ immunityLevel, BEACON_RSSI(ah),
+ aniState->rssiThrLow, aniState->rssiThrHigh);
+
+- if (aniState->update_ani)
+- aniState->ofdmNoiseImmunityLevel = immunityLevel;
+-
++ aniState->ofdmNoiseImmunityLevel = immunityLevel;
+ entry_ofdm = &ofdm_level_table[aniState->ofdmNoiseImmunityLevel];
+ entry_cck = &cck_level_table[aniState->cckNoiseImmunityLevel];
+
+@@ -222,9 +220,7 @@ static void ath9k_hw_set_cck_nil(struct
+ immunityLevel > ATH9K_ANI_CCK_MAX_LEVEL_LOW_RSSI)
+ immunityLevel = ATH9K_ANI_CCK_MAX_LEVEL_LOW_RSSI;
+
+- if (aniState->update_ani)
+- aniState->cckNoiseImmunityLevel = immunityLevel;
+-
++ aniState->cckNoiseImmunityLevel = immunityLevel;
+ entry_ofdm = &ofdm_level_table[aniState->ofdmNoiseImmunityLevel];
+ entry_cck = &cck_level_table[aniState->cckNoiseImmunityLevel];
+
+@@ -338,7 +334,6 @@ void ath9k_ani_reset(struct ath_hw *ah,
+ aniState->ofdmNoiseImmunityLevel,
+ aniState->cckNoiseImmunityLevel);
+
+- aniState->update_ani = false;
+ ofdm_nil = ATH9K_ANI_OFDM_DEF_LEVEL;
+ cck_nil = ATH9K_ANI_CCK_DEF_LEVEL;
+ }
+@@ -354,8 +349,6 @@ void ath9k_ani_reset(struct ath_hw *ah,
+ is_scanning,
+ aniState->ofdmNoiseImmunityLevel,
+ aniState->cckNoiseImmunityLevel);
+-
+- aniState->update_ani = true;
+ }
+ ath9k_hw_set_ofdm_nil(ah, ofdm_nil);
+ ath9k_hw_set_cck_nil(ah, cck_nil);
+@@ -538,7 +531,6 @@ void ath9k_hw_ani_init(struct ath_hw *ah
+ ani->ofdmWeakSigDetect = ATH9K_ANI_USE_OFDM_WEAK_SIG;
+ ani->cckNoiseImmunityLevel = ATH9K_ANI_CCK_DEF_LEVEL;
+ ani->ofdmNoiseImmunityLevel = ATH9K_ANI_OFDM_DEF_LEVEL;
+- ani->update_ani = false;
+ }
+
+ /*
+--- a/drivers/net/wireless/ath/ath9k/ani.h
++++ b/drivers/net/wireless/ath/ath9k/ani.h
+@@ -116,7 +116,6 @@ struct ar5416AniState {
+ u8 firstepLevel;
+ u8 ofdmWeakSigDetect;
+ u8 cckWeakSigThreshold;
+- bool update_ani;
+ u32 listenTime;
+ int32_t rssiThrLow;
+ int32_t rssiThrHigh;