]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: Perform integrity checks when processing FFT frames
authorNick Kossifidis <mickflemm@gmail.com>
Wed, 29 Apr 2015 23:51:15 +0000 (23:51 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 9 May 2015 13:46:12 +0000 (16:46 +0300)
commit004368172cd1dfb835c8c9c2932be43d300d9d0d
treefe500727921e46b6e5a1bc8d753b26bd1fffc49b
parentdb93836053f251ffa878094a77975b2d3156fdaf
ath9k: Perform integrity checks when processing FFT frames

a) Check that the maximum magnitude is at the specified index

b) Check if the maximum magnitude index is at dc_pos and if so
calculate a new one (value at dc_pos is invalid)

c) Check if the specified maximum magnitude is indeed the maximum

Signed-off-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath9k/common-spectral.c