From: Peter Oh <poh@qca.qualcomm.com> To: <ath10k@lists.infradead.org> Cc: <linux-wireless@vger.kernel.org> Subject: [PATCH 3/3] ath: Enhance radar detection by looking up chirp Date: Thu, 12 Feb 2015 13:17:05 -0800 [thread overview] Message-ID: <1423775825-19498-3-git-send-email-poh@qca.qualcomm.com> (raw) In-Reply-To: <1423775825-19498-1-git-send-email-poh@qca.qualcomm.com> 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> --- drivers/net/wireless/ath/dfs_pri_detector.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/ath/dfs_pri_detector.c b/drivers/net/wireless/ath/dfs_pri_detector.c index 43b6081..1b5ad19 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); -- 1.9.1
WARNING: multiple messages have this Message-ID (diff)
From: Peter Oh <poh@qca.qualcomm.com> To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org Subject: [PATCH 3/3] ath: Enhance radar detection by looking up chirp Date: Thu, 12 Feb 2015 13:17:05 -0800 [thread overview] Message-ID: <1423775825-19498-3-git-send-email-poh@qca.qualcomm.com> (raw) In-Reply-To: <1423775825-19498-1-git-send-email-poh@qca.qualcomm.com> 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> --- drivers/net/wireless/ath/dfs_pri_detector.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/ath/dfs_pri_detector.c b/drivers/net/wireless/ath/dfs_pri_detector.c index 43b6081..1b5ad19 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); -- 1.9.1 _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k
next prev parent reply other threads:[~2015-02-12 21:18 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-02-12 21:17 [PATCH 1/3] ath: Introduce chirp parameter used by DFS Peter Oh 2015-02-12 21:17 ` Peter Oh 2015-02-12 21:17 ` [PATCH 2/3] ath10k: Update chirp value in pulse event Peter Oh 2015-02-12 21:17 ` Peter Oh 2015-02-12 21:17 ` Peter Oh [this message] 2015-02-12 21:17 ` [PATCH 3/3] ath: Enhance radar detection by looking up chirp Peter Oh 2015-02-12 21:28 ` [PATCH 1/3] ath: Introduce chirp parameter used by DFS Peter Oh 2015-02-12 21:28 ` Peter Oh 2015-03-05 13:56 ` Kalle Valo 2015-03-05 13:56 ` Kalle Valo
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1423775825-19498-3-git-send-email-poh@qca.qualcomm.com \ --to=poh@qca.qualcomm.com \ --cc=ath10k@lists.infradead.org \ --cc=linux-wireless@vger.kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.