]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ath9k: fix reporting calculated new FFT upper max
authorSimon Wunderlich <sw@simonwunderlich.de>
Mon, 1 Oct 2018 14:26:59 +0000 (17:26 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 2 Oct 2018 04:44:18 +0000 (07:44 +0300)
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>
drivers/net/wireless/ath/ath9k/common-spectral.c

index 70ddaf6199a0caf054f6c57bff631cf29d52fb5d..6a43d26276e529332bb065baf4523ceb8722221d 100644 (file)
@@ -381,7 +381,7 @@ ath_cmn_process_ht20_40_fft(struct ath_rx_status *rs,
 
                ath_dbg(common, SPECTRAL_SCAN,
                        "Calculated new upper max 0x%X at %i\n",
-                       tmp_mag, i);
+                       tmp_mag, fft_sample_40.upper_max_index);
        } else
        for (i = dc_pos; i < SPECTRAL_HT20_40_NUM_BINS; i++) {
                if (fft_sample_40.data[i] == (upper_mag >> max_exp))