ar71xx: increase rb4xx nand kernel partition size (patch by danimo)
[openwrt/staging/yousong.git] / package / mac80211 / patches / 551-ath9k_ani_helper.patch
1 --- a/drivers/net/wireless/ath/ath9k/ani.c
2 +++ b/drivers/net/wireless/ath/ath9k/ani.c
3 @@ -109,6 +109,11 @@ static void ath9k_hw_ani_lower_immunity(
4 ath9k_hw_private_ops(ah)->ani_lower_immunity(ah);
5 }
6
7 +static bool use_new_ani(struct ath_hw *ah)
8 +{
9 + return AR_SREV_9300_20_OR_LATER(ah) || modparam_force_new_ani;
10 +}
11 +
12 int ath9k_hw_get_ani_channel_idx(struct ath_hw *ah,
13 struct ath9k_channel *chan)
14 {
15 @@ -1178,7 +1183,7 @@ void ath9k_hw_ani_init(struct ath_hw *ah
16
17 memset(ah->ani, 0, sizeof(ah->ani));
18 for (i = 0; i < ARRAY_SIZE(ah->ani); i++) {
19 - if (AR_SREV_9300_20_OR_LATER(ah) || modparam_force_new_ani) {
20 + if (use_new_ani(ah)) {
21 ah->ani[i].ofdmTrigHigh = ATH9K_ANI_OFDM_TRIG_HIGH_NEW;
22 ah->ani[i].ofdmTrigLow = ATH9K_ANI_OFDM_TRIG_LOW_NEW;
23
24 @@ -1230,7 +1235,7 @@ void ath9k_hw_ani_init(struct ath_hw *ah
25 * since we expect some ongoing maintenance on the tables, let's sanity
26 * check here default level should not modify INI setting.
27 */
28 - if (AR_SREV_9300_20_OR_LATER(ah) || modparam_force_new_ani) {
29 + if (use_new_ani(ah)) {
30 const struct ani_ofdm_level_entry *entry_ofdm;
31 const struct ani_cck_level_entry *entry_cck;
32