]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: DFS - add pulse chirp detection for FCC
authorZefir Kurtisi <zefir.kurtisi@neratec.com>
Tue, 16 Jun 2015 10:52:16 +0000 (12:52 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 11 Jul 2015 16:51:53 +0000 (19:51 +0300)
commitdb816cc158c11743d6f1ee8484a16faf4af01fbd
tree170ece1ebd4755e931237e71e5b1f167d2997ac6
parentcf5f9fd8f718c59ef36d7ad88841d3afcf5d5bf2
ath9k: DFS - add pulse chirp detection for FCC

FCC long pulse radar (type 5) requires pulses to be
checked for chirping. This patch implements chirp
detection based on the FFT data provided for long
pulses.

A chirp is detected when a set of criteria defined
by FCC pulse characteristics is met, including
* have at least 4 FFT samples
* max_bin index moves equidistantly between samples
* the gradient is within defined range

The chirp detection has been tested with reference
radar generating devices and proved to work reliably.

Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath9k/dfs.c