aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/link.c
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>2013-10-11 08:09:54 -0400
committerJohn W. Linville <linville@tuxdriver.com>2013-10-18 14:03:53 -0400
commit5bc225acfe6a6226333061107708033a8d181d39 (patch)
treec5fa3adb92c2ad9a2401effb6561f7ca3bd585b9 /drivers/net/wireless/ath/ath9k/link.c
parentdf3c2adea4e432a2ca8fc0aed1caa7c7a7d84086 (diff)
ath9k: add noise floor parameter to ath9k_hw_getchan_noise
Add nf parameter to ath9k_hw_getchan_noise() in order to compute NF for EXT chains with the same scale of noise floor calculated on CTL chains. ath9k_hw_getchan_noise() will be used in ath_process_fft() for spectral scan on HT40 channels Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/link.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/link.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/link.c b/drivers/net/wireless/ath/ath9k/link.c
index 84a60644f93a..b7975195d740 100644
--- a/drivers/net/wireless/ath/ath9k/link.c
+++ b/drivers/net/wireless/ath/ath9k/link.c
@@ -518,7 +518,8 @@ void ath_update_survey_nf(struct ath_softc *sc, int channel)
518 518
519 if (chan->noisefloor) { 519 if (chan->noisefloor) {
520 survey->filled |= SURVEY_INFO_NOISE_DBM; 520 survey->filled |= SURVEY_INFO_NOISE_DBM;
521 survey->noise = ath9k_hw_getchan_noise(ah, chan); 521 survey->noise = ath9k_hw_getchan_noise(ah, chan,
522 chan->noisefloor);
522 } 523 }
523} 524}
524 525