]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit134c63e443f8ca08a0d4f062dd319e5588684298
tree72a6c01da9a8b549f0db6bd66a2a48ec66c73f68
parentd5760f76502515be5c1ac474ba2fefeb779d4d92
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