mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-13 22:14:20 +08:00
ath9k_htc: remove use of common->ani.noise_floor
It is unused aside from a single redundant debug message Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
5c89569194
commit
35ecfe03d9
@ -760,23 +760,12 @@ void ath9k_ani_work(struct work_struct *work)
|
||||
ath9k_hw_ani_monitor(ah, ah->curchan);
|
||||
|
||||
/* Perform calibration if necessary */
|
||||
if (longcal || shortcal) {
|
||||
if (longcal || shortcal)
|
||||
common->ani.caldone =
|
||||
ath9k_hw_calibrate(ah, ah->curchan,
|
||||
common->rx_chainmask,
|
||||
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);
|
||||
}
|
||||
|
||||
ath9k_htc_ps_restore(priv);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user