Commit 0bda6523 authored by Felix Fietkau's avatar Felix Fietkau Committed by John W. Linville

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: default avatarFelix Fietkau <nbd@openwrt.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 4f1a5a4b
...@@ -35,7 +35,6 @@ static const u8 ath_bcast_mac[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; ...@@ -35,7 +35,6 @@ static const u8 ath_bcast_mac[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
struct ath_ani { struct ath_ani {
bool caldone; bool caldone;
int16_t noise_floor;
unsigned int longcal_timer; unsigned int longcal_timer;
unsigned int shortcal_timer; unsigned int shortcal_timer;
unsigned int resetcal_timer; unsigned int resetcal_timer;
......
...@@ -506,7 +506,6 @@ static void ath9k_init_misc(struct ath_softc *sc) ...@@ -506,7 +506,6 @@ static void ath9k_init_misc(struct ath_softc *sc)
struct ath_common *common = ath9k_hw_common(sc->sc_ah); struct ath_common *common = ath9k_hw_common(sc->sc_ah);
int i = 0; int i = 0;
common->ani.noise_floor = ATH_DEFAULT_NOISE_FLOOR;
setup_timer(&common->ani.timer, ath_ani_calibrate, (unsigned long)sc); setup_timer(&common->ani.timer, ath_ani_calibrate, (unsigned long)sc);
sc->config.txpowlimit = ATH_TXPOWER_MAX; sc->config.txpowlimit = ATH_TXPOWER_MAX;
......
...@@ -459,16 +459,6 @@ void ath_ani_calibrate(unsigned long data) ...@@ -459,16 +459,6 @@ void ath_ani_calibrate(unsigned long data)
ah->curchan, ah->curchan,
common->rx_chainmask, common->rx_chainmask,
longcal); longcal);
if (longcal)
common->ani.noise_floor = ath9k_hw_getchan_noise(ah,
ah->curchan);
ath_print(common, ATH_DBG_ANI,
" calibrate chan %u/%x nf: %d\n",
ah->curchan->channel,
ah->curchan->channelFlags,
common->ani.noise_floor);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment