]> git.baikalelectronics.ru Git - kernel.git/commit
ath: DFS - limit number of potential PRI sequences
authorZefir Kurtisi <zefir.kurtisi@neratec.com>
Tue, 16 Jun 2015 08:34:03 +0000 (10:34 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 30 Jun 2015 12:33:32 +0000 (15:33 +0300)
commit6948d76ba0809171093ffb1266c6d3bf9f50494b
treedb1aa3e79cd80e0a11b504d4520de115fb455628
parentb12a371741d6e99ed3875d3f865bdf7625d56789
ath: DFS - limit number of potential PRI sequences

In the PRI detector, after the current radar pulse
has been checked agains existing PRI sequences, it
is considered as part of a new potential sequence.

Previously, the condition to accept a new sequence
was to have at least the same number of pulses as
the longest matching sequence. This was wrong,
since it led to duplicates of PRI sequences.

This patch changes the acceptance criteria for new
potential sequences from 'at least' to 'more than'
the longest existing.

Detection performance remains unaffected, while
the number of PRI sequences accounted at runtime
(and with it CPU load) is reduced by up to 50%.

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