All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ath9k: DFS - consider ext_channel pulses only in HT40 mode
@ 2015-06-16  9:46 ` Zefir Kurtisi
  0 siblings, 0 replies; 4+ messages in thread
From: Zefir Kurtisi @ 2015-06-16  9:46 UTC (permalink / raw
  To: linux-wireless; +Cc: poh, ath9k-devel, Zefir Kurtisi

The chip reports radar pulses on extension channel
even if operating in HT20 mode. This patch adds a
sanity check for HT40 mode before it feeds pulses
on extension channel to the pattern detector.

Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
---
 drivers/net/wireless/ath/ath9k/dfs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath9k/dfs.c b/drivers/net/wireless/ath/ath9k/dfs.c
index e98a9ea..5025a4e 100644
--- a/drivers/net/wireless/ath/ath9k/dfs.c
+++ b/drivers/net/wireless/ath/ath9k/dfs.c
@@ -198,7 +198,8 @@ void ath9k_dfs_process_phyerr(struct ath_softc *sc, void *data,
 	sc->dfs_prev_pulse_ts = pe.ts;
 	if (ard.pulse_bw_info & PRI_CH_RADAR_FOUND)
 		ath9k_dfs_process_radar_pulse(sc, &pe);
-	if (ard.pulse_bw_info & EXT_CH_RADAR_FOUND) {
+	if (IS_CHAN_HT40(ah->curchan) &&
+	    ard.pulse_bw_info & EXT_CH_RADAR_FOUND) {
 		pe.freq += IS_CHAN_HT40PLUS(ah->curchan) ? 20 : -20;
 		ath9k_dfs_process_radar_pulse(sc, &pe);
 	}
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [ath9k-devel] [PATCH] ath9k: DFS - consider ext_channel pulses only in HT40 mode
@ 2015-06-16  9:46 ` Zefir Kurtisi
  0 siblings, 0 replies; 4+ messages in thread
From: Zefir Kurtisi @ 2015-06-16  9:46 UTC (permalink / raw
  To: ath9k-devel

The chip reports radar pulses on extension channel
even if operating in HT20 mode. This patch adds a
sanity check for HT40 mode before it feeds pulses
on extension channel to the pattern detector.

Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
---
 drivers/net/wireless/ath/ath9k/dfs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath9k/dfs.c b/drivers/net/wireless/ath/ath9k/dfs.c
index e98a9ea..5025a4e 100644
--- a/drivers/net/wireless/ath/ath9k/dfs.c
+++ b/drivers/net/wireless/ath/ath9k/dfs.c
@@ -198,7 +198,8 @@ void ath9k_dfs_process_phyerr(struct ath_softc *sc, void *data,
 	sc->dfs_prev_pulse_ts = pe.ts;
 	if (ard.pulse_bw_info & PRI_CH_RADAR_FOUND)
 		ath9k_dfs_process_radar_pulse(sc, &pe);
-	if (ard.pulse_bw_info & EXT_CH_RADAR_FOUND) {
+	if (IS_CHAN_HT40(ah->curchan) &&
+	    ard.pulse_bw_info & EXT_CH_RADAR_FOUND) {
 		pe.freq += IS_CHAN_HT40PLUS(ah->curchan) ? 20 : -20;
 		ath9k_dfs_process_radar_pulse(sc, &pe);
 	}
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: ath9k: DFS - consider ext_channel pulses only in HT40 mode
  2015-06-16  9:46 ` [ath9k-devel] " Zefir Kurtisi
@ 2015-07-11 16:51   ` Kalle Valo
  -1 siblings, 0 replies; 4+ messages in thread
From: Kalle Valo @ 2015-07-11 16:51 UTC (permalink / raw
  To: Zefir Kurtisi; +Cc: linux-wireless, poh, ath9k-devel, Zefir Kurtisi


> The chip reports radar pulses on extension channel
> even if operating in HT20 mode. This patch adds a
> sanity check for HT40 mode before it feeds pulses
> on extension channel to the pattern detector.
> 
> Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>

Thanks, applied to wireless-drivers-next.git.

Kalle Valo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ath9k-devel] ath9k: DFS - consider ext_channel pulses only in HT40 mode
@ 2015-07-11 16:51   ` Kalle Valo
  0 siblings, 0 replies; 4+ messages in thread
From: Kalle Valo @ 2015-07-11 16:51 UTC (permalink / raw
  To: ath9k-devel


> The chip reports radar pulses on extension channel
> even if operating in HT20 mode. This patch adds a
> sanity check for HT40 mode before it feeds pulses
> on extension channel to the pattern detector.
> 
> Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>

Thanks, applied to wireless-drivers-next.git.

Kalle Valo

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-07-11 16:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-16  9:46 [PATCH] ath9k: DFS - consider ext_channel pulses only in HT40 mode Zefir Kurtisi
2015-06-16  9:46 ` [ath9k-devel] " Zefir Kurtisi
2015-07-11 16:51 ` Kalle Valo
2015-07-11 16:51   ` [ath9k-devel] " Kalle Valo

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.