提交 475398b7 编写于 作者: S Simon Wunderlich 提交者: Greg Kroah-Hartman

ath9k: fix reporting calculated new FFT upper max

[ Upstream commit 4fb5837ac2bd46a85620b297002c704e9958f64d ]

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: NSimon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
上级 f6ec4fcc
...@@ -411,7 +411,7 @@ ath_cmn_process_ht20_40_fft(struct ath_rx_status *rs, ...@@ -411,7 +411,7 @@ ath_cmn_process_ht20_40_fft(struct ath_rx_status *rs,
ath_dbg(common, SPECTRAL_SCAN, ath_dbg(common, SPECTRAL_SCAN,
"Calculated new upper max 0x%X at %i\n", "Calculated new upper max 0x%X at %i\n",
tmp_mag, i); tmp_mag, fft_sample_40.upper_max_index);
} else } else
for (i = dc_pos; i < SPECTRAL_HT20_40_NUM_BINS; i++) { for (i = dc_pos; i < SPECTRAL_HT20_40_NUM_BINS; i++) {
if (fft_sample_40.data[i] == (upper_mag >> max_exp)) if (fft_sample_40.data[i] == (upper_mag >> max_exp))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册