ath9k: fix reporting calculated new FFT upper max
authorSimon Wunderlich <sw@simonwunderlich.de>
Mon, 1 Oct 2018 14:26:59 +0000 (17:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Nov 2019 14:54:28 +0000 (15:54 +0100)
commit6a9820f17c104598a19ae93cfe6fbf58e937c2d7
treef03663a5c6a0d2115d7f345dfba371ffb3da21d2
parente12df1dc496b986201586e3dc4ae03533c246651
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: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/ath9k/common-spectral.c