diff options
author | Zefir Kurtisi <zefir.kurtisi@neratec.com> | 2015-06-16 10:34:03 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2015-06-30 15:33:32 +0300 |
commit | b24fc6fc7c0f6425793fd46ccc4ea48f49447617 (patch) | |
tree | db1aa3e79cd80e0a11b504d4520de115fb455628 /drivers/net/wireless/ath/dfs_pri_detector.c | |
parent | d02e752f732a91e2a6de9a3547c682914ae0bbe7 (diff) | |
download | blackbird-obmc-linux-b24fc6fc7c0f6425793fd46ccc4ea48f49447617.tar.gz blackbird-obmc-linux-b24fc6fc7c0f6425793fd46ccc4ea48f49447617.zip |
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>
Diffstat (limited to 'drivers/net/wireless/ath/dfs_pri_detector.c')
-rw-r--r-- | drivers/net/wireless/ath/dfs_pri_detector.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/dfs_pri_detector.c b/drivers/net/wireless/ath/dfs_pri_detector.c index 1b5ad1965607..cc5c592fc4c0 100644 --- a/drivers/net/wireless/ath/dfs_pri_detector.c +++ b/drivers/net/wireless/ath/dfs_pri_detector.c @@ -273,7 +273,7 @@ static bool pseq_handler_create_sequences(struct pri_detector *pde, tmp_false_count++; } } - if (ps.count < min_count) + if (ps.count <= min_count) /* did not reach minimum count, drop sequence */ continue; |