ath9k: compile out the ath9k rate control
[openwrt.git] / package / mac80211 / patches / 513-ath9k_remove_ani_nf.patch
1 --- a/drivers/net/wireless/ath/ath.h
2 +++ b/drivers/net/wireless/ath/ath.h
3 @@ -35,7 +35,6 @@ static const u8 ath_bcast_mac[ETH_ALEN] 
4  
5  struct ath_ani {
6         bool caldone;
7 -       int16_t noise_floor;
8         unsigned int longcal_timer;
9         unsigned int shortcal_timer;
10         unsigned int resetcal_timer;
11 --- a/drivers/net/wireless/ath/ath9k/init.c
12 +++ b/drivers/net/wireless/ath/ath9k/init.c
13 @@ -507,7 +507,6 @@ static void ath9k_init_misc(struct ath_s
14         struct ath_common *common = ath9k_hw_common(sc->sc_ah);
15         int i = 0;
16  
17 -       common->ani.noise_floor = ATH_DEFAULT_NOISE_FLOOR;
18         setup_timer(&common->ani.timer, ath_ani_calibrate, (unsigned long)sc);
19  
20         sc->config.txpowlimit = ATH_TXPOWER_MAX;
21 --- a/drivers/net/wireless/ath/ath9k/main.c
22 +++ b/drivers/net/wireless/ath/ath9k/main.c
23 @@ -460,16 +460,6 @@ void ath_ani_calibrate(unsigned long dat
24                                                    ah->curchan,
25                                                    common->rx_chainmask,
26                                                    longcal);
27 -
28 -                       if (longcal)
29 -                               common->ani.noise_floor = ath9k_hw_getchan_noise(ah,
30 -                                                                    ah->curchan);
31 -
32 -                       ath_print(common, ATH_DBG_ANI,
33 -                                 " calibrate chan %u/%x nf: %d\n",
34 -                                 ah->curchan->channel,
35 -                                 ah->curchan->channelFlags,
36 -                                 common->ani.noise_floor);
37                 }
38         }
39