diff options
author | Peter Oh <poh@qca.qualcomm.com> | 2015-03-04 15:43:46 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2015-03-05 15:55:35 +0200 |
commit | dab74cde38dab36cad20caa8aba26cc0e244dbb5 (patch) | |
tree | 01ebaaeb822f95f6f1672387b1bedefce0efd8e3 /drivers/net/wireless/ath/dfs_pri_detector.c | |
parent | 2c3f26a065054ec942e5b48fc273b592c3f45238 (diff) | |
download | blackbird-op-linux-dab74cde38dab36cad20caa8aba26cc0e244dbb5.tar.gz blackbird-op-linux-dab74cde38dab36cad20caa8aba26cc0e244dbb5.zip |
ath: enhance radar detection by looking up chirp
Certain radar types such as FCC radar type 5 are using chirp
in their pulses, hence looking up the chirp status will enhance
to avoid false radar detection.
Signed-off-by: Peter Oh <poh@qca.qualcomm.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 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/dfs_pri_detector.c b/drivers/net/wireless/ath/dfs_pri_detector.c index 43b608178884..1b5ad1965607 100644 --- a/drivers/net/wireless/ath/dfs_pri_detector.c +++ b/drivers/net/wireless/ath/dfs_pri_detector.c @@ -390,6 +390,10 @@ static struct pri_sequence *pri_detector_add_pulse(struct pri_detector *de, if ((ts - de->last_ts) < rs->max_pri_tolerance) /* if delta to last pulse is too short, don't use this pulse */ return NULL; + /* radar detector spec needs chirp, but not detected */ + if (rs->chirp && rs->chirp != event->chirp) + return NULL; + de->last_ts = ts; max_updated_seq = pseq_handler_add_to_existing_seqs(de, ts); |