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)
commit7fa580c193490beb0fb713ecb7611bf59f00021b
treefe500727921e46b6e5a1bc8d753b26bd1fffc49b
parent58b5e4c731b5b8455571fbd64a100e3afe4fa501
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