diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-10-03 16:57:25 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-10-03 16:57:25 +0000 |
commit | 8c5fdf2ae8b470286a40684a3823159635b447c9 (patch) | |
tree | 3b1354ccf23f376dae0fd774fd1d9efad9819b92 /package/mac80211/patches/551-ath9k_ani_helper.patch | |
parent | a26814e6d64497363e371690e8a4ac44a2df1425 (diff) |
ath9k: add a few fixes and cleanups
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23198 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/551-ath9k_ani_helper.patch')
-rw-r--r-- | package/mac80211/patches/551-ath9k_ani_helper.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/package/mac80211/patches/551-ath9k_ani_helper.patch b/package/mac80211/patches/551-ath9k_ani_helper.patch new file mode 100644 index 000000000..dfd85f237 --- /dev/null +++ b/package/mac80211/patches/551-ath9k_ani_helper.patch @@ -0,0 +1,32 @@ +--- a/drivers/net/wireless/ath/ath9k/ani.c ++++ b/drivers/net/wireless/ath/ath9k/ani.c +@@ -109,6 +109,11 @@ static void ath9k_hw_ani_lower_immunity( + ath9k_hw_private_ops(ah)->ani_lower_immunity(ah); + } + ++static bool use_new_ani(struct ath_hw *ah) ++{ ++ return AR_SREV_9300_20_OR_LATER(ah) || modparam_force_new_ani; ++} ++ + int ath9k_hw_get_ani_channel_idx(struct ath_hw *ah, + struct ath9k_channel *chan) + { +@@ -1178,7 +1183,7 @@ void ath9k_hw_ani_init(struct ath_hw *ah + + memset(ah->ani, 0, sizeof(ah->ani)); + for (i = 0; i < ARRAY_SIZE(ah->ani); i++) { +- if (AR_SREV_9300_20_OR_LATER(ah) || modparam_force_new_ani) { ++ if (use_new_ani(ah)) { + ah->ani[i].ofdmTrigHigh = ATH9K_ANI_OFDM_TRIG_HIGH_NEW; + ah->ani[i].ofdmTrigLow = ATH9K_ANI_OFDM_TRIG_LOW_NEW; + +@@ -1230,7 +1235,7 @@ void ath9k_hw_ani_init(struct ath_hw *ah + * since we expect some ongoing maintenance on the tables, let's sanity + * check here default level should not modify INI setting. + */ +- if (AR_SREV_9300_20_OR_LATER(ah) || modparam_force_new_ani) { ++ if (use_new_ani(ah)) { + const struct ani_ofdm_level_entry *entry_ofdm; + const struct ani_cck_level_entry *entry_cck; + |