diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-09-29 11:15:29 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-10-05 13:35:22 -0400 |
commit | 0bda652300dff8136c9d889f1133462c7c7d332c (patch) | |
tree | 05eae912871256e965e4e9419ed28b2c61d7eebf /drivers | |
parent | 4f1a5a4b62c5335aafd5830866320c8918103a3a (diff) |
ath9k: remove the noise floor value in the ani struct
common->ani.noise_floor is now only used for a similar redundant debug
message similar to the one that was removed from ath9k_htc in an earlier
patch. Remove it from ath9k as well now.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/init.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 10 |
3 files changed, 0 insertions, 12 deletions
diff --git a/drivers/net/wireless/ath/ath.h b/drivers/net/wireless/ath/ath.h index dd236c3b52f6..5894fcc2c628 100644 --- a/drivers/net/wireless/ath/ath.h +++ b/drivers/net/wireless/ath/ath.h | |||
@@ -35,7 +35,6 @@ static const u8 ath_bcast_mac[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; | |||
35 | 35 | ||
36 | struct ath_ani { | 36 | struct ath_ani { |
37 | bool caldone; | 37 | bool caldone; |
38 | int16_t noise_floor; | ||
39 | unsigned int longcal_timer; | 38 | unsigned int longcal_timer; |
40 | unsigned int shortcal_timer; | 39 | unsigned int shortcal_timer; |
41 | unsigned int resetcal_timer; | 40 | unsigned int resetcal_timer; |
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index de3393867e37..11dc3ac20cd6 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c | |||
@@ -506,7 +506,6 @@ static void ath9k_init_misc(struct ath_softc *sc) | |||
506 | struct ath_common *common = ath9k_hw_common(sc->sc_ah); | 506 | struct ath_common *common = ath9k_hw_common(sc->sc_ah); |
507 | int i = 0; | 507 | int i = 0; |
508 | 508 | ||
509 | common->ani.noise_floor = ATH_DEFAULT_NOISE_FLOOR; | ||
510 | setup_timer(&common->ani.timer, ath_ani_calibrate, (unsigned long)sc); | 509 | setup_timer(&common->ani.timer, ath_ani_calibrate, (unsigned long)sc); |
511 | 510 | ||
512 | sc->config.txpowlimit = ATH_TXPOWER_MAX; | 511 | sc->config.txpowlimit = ATH_TXPOWER_MAX; |
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index fcba402d5a1e..a801a08c4da2 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -459,16 +459,6 @@ void ath_ani_calibrate(unsigned long data) | |||
459 | ah->curchan, | 459 | ah->curchan, |
460 | common->rx_chainmask, | 460 | common->rx_chainmask, |
461 | longcal); | 461 | longcal); |
462 | |||
463 | if (longcal) | ||
464 | common->ani.noise_floor = ath9k_hw_getchan_noise(ah, | ||
465 | ah->curchan); | ||
466 | |||
467 | ath_print(common, ATH_DBG_ANI, | ||
468 | " calibrate chan %u/%x nf: %d\n", | ||
469 | ah->curchan->channel, | ||
470 | ah->curchan->channelFlags, | ||
471 | common->ani.noise_floor); | ||
472 | } | 462 | } |
473 | } | 463 | } |
474 | 464 | ||