ath: fix DFS timestamp wraparound reset condition
authorZefir Kurtisi <zefir.kurtisi@neratec.com>
Tue, 29 Sep 2015 10:29:49 +0000 (12:29 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 9 Oct 2015 08:47:31 +0000 (11:47 +0300)
commit706452b06866f950febb91e582c1d06c03ca85ee
tree3ca7e1f2fac0095a4240984e685c67b28a8b4262
parent101d1f7fbf7dbb881f808c0fdc23124051ac5da6
ath: fix DFS timestamp wraparound reset condition

The DFS pattern detector ought to reset the
detector lines when a pulse is added with
lower time stamp than the previous (which
indicates a TSF restart).

This did not work so far and is fixed with
this patch.

The modification does not change detection
performance within the driver, since it
only ensures early reset (which is later
performed by the PRI detectors anyway).
It is relevant for synthetic tests and
statistical evaluations, where millions
of pulse patterns are processed and an
early reset helps reducing load.

Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/dfs_pattern_detector.c