]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: Support processing of multiple FFT frames per report.
authorNick Kossifidis <mickflemm@gmail.com>
Wed, 29 Apr 2015 23:51:16 +0000 (23:51 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 9 May 2015 13:46:13 +0000 (16:46 +0300)
commit2b57b69a15fd4bd50e3e7bccbd7f65212724c86f
tree3ad652d4a60b8d9ffba9fc41f644fc74266d93bb
parent004368172cd1dfb835c8c9c2932be43d300d9d0d
ath9k: Support processing of multiple FFT frames per report.

Since we can identify the FFT frames on the report by checking the
consistency of their magnitude info, we can process all of them,
even when some of them are corrupted.

This patch introduces two functions to quickly verify the integrity
of the mag_info fields and some further tweaks to detect the frames
in the report and process them.

Note that in case of missing bytes we don't duplicate them, instead
we leave them as zeroes. This way we get less noise on the FFT plot.

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