aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
authorSimon Wunderlich <sw@simonwunderlich.de>2018-10-01 10:26:59 -0400
committerKalle Valo <kvalo@codeaurora.org>2018-10-02 00:44:18 -0400
commit4fb5837ac2bd46a85620b297002c704e9958f64d (patch)
treed53a722723074dfd63fde2e2cfb8b43400a3776e /drivers/net/wireless/ath
parent4e7a3fa5394e6a9e3865ef1cedaec5c0ca368dc7 (diff)
ath9k: fix reporting calculated new FFT upper max
Since the debug print code is outside of the loop, it shouldn't use the loop iterator anymore but instead print the found maximum index. Cc: Nick Kossifidis <mickflemm@gmail.com> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r--drivers/net/wireless/ath/ath9k/common-spectral.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/common-spectral.c b/drivers/net/wireless/ath/ath9k/common-spectral.c
index 70ddaf6199a0..6a43d26276e5 100644
--- a/drivers/net/wireless/ath/ath9k/common-spectral.c
+++ b/drivers/net/wireless/ath/ath9k/common-spectral.c
@@ -381,7 +381,7 @@ ath_cmn_process_ht20_40_fft(struct ath_rx_status *rs,
381 381
382 ath_dbg(common, SPECTRAL_SCAN, 382 ath_dbg(common, SPECTRAL_SCAN,
383 "Calculated new upper max 0x%X at %i\n", 383 "Calculated new upper max 0x%X at %i\n",
384 tmp_mag, i); 384 tmp_mag, fft_sample_40.upper_max_index);
385 } else 385 } else
386 for (i = dc_pos; i < SPECTRAL_HT20_40_NUM_BINS; i++) { 386 for (i = dc_pos; i < SPECTRAL_HT20_40_NUM_BINS; i++) {
387 if (fft_sample_40.data[i] == (upper_mag >> max_exp)) 387 if (fft_sample_40.data[i] == (upper_mag >> max_exp))