ath9k: fix and simplify FFT max index retrieval
authorSimon Wunderlich <sw@simonwunderlich.de>
Mon, 1 Oct 2018 14:26:51 +0000 (17:26 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 2 Oct 2018 04:43:56 +0000 (07:43 +0300)
commit2f85786b8a570fbfbc9f52a42723e5d8290ab12f
tree72a6c01da9a8b549f0db6bd66a2a48ec66c73f68
parentb796a6c04e65e35033ad4cb390500ff03ef72350
ath9k: fix and simplify FFT max index retrieval

FFT max index retrieval was not retrieved correctly for HT20/HT40 FFT
frames. Fixing the retrieval allows us to remove the fixup function as
well. While at it, split the spectral_max_index function into versions
for ht20 and ht40 to simplify the code.

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
drivers/net/wireless/ath/ath9k/common-spectral.h