All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] ath9k: integrate DFS detection
@ 2012-04-22 19:50 ` Zefir Kurtisi
  0 siblings, 0 replies; 25+ messages in thread
From: Zefir Kurtisi @ 2012-04-22 19:50 UTC (permalink / raw)
  To: linville
  Cc: ath9k-devel, linux-wireless, rodrigue, achadd, chunkeey, Zefir Kurtisi

From: Zefir Kurtisi <zefir.kurtisi@neratec.com>

These are the remaining knobs required to turn to get DFS
detection working in ath9k.

---

Testing mini-HowTo

Building:
On top of the patches, building a DFS capable driver requires
* setting CONFIG_ATH9K_DFS_CERTIFIED=y
* change hw.c:ath9k_hw_dfs_tested() to return true for the
  chip-set you are testing
  (tested so far: AR9280, AR9390 and AR9580)

Setting CONFIG_ATH_DEBUG=y will allow you to log detailed pulse
event information by setting the DFS_DEBUG bit (0x20000) in
ath9k/debug, while radar detection events are logged generally.

Also, set CONFIG_ATH9K_DFS_DEBUGFS=y to enable pulse and
pattern detection statistics along with pool utilization stats
in phyX/ath9k/dfs_stats. Ensure to have recent
'[PATCH] ath9k: extend DFS detector stats in dfs_debugfs'
applied for the full set of DFS statistics.

Testing:
You need wireless tools built with
* crda: add support to send DFS master region
* wireless-regdb: Add master DFS region support
* wireless-regdb: set ETSI as DFS region for EU
(all upstream since 2012-01)

1) setup ath9k monitor
   sudo iw phy phy0 interface add moni0 type monitor
   sudo iw dev moni0 set freq 5500 HT20
   sudo ifconfig moni0 up
2) set ETSI countrycode, e.g.
   sudo iw reg set CH
3) fire some ETSI radars at device and check log and dfs_stats


Note: due to the lack of DFS master support, only monitor mode
      can be tested. Furthermore, at this stage the detector
      supports ETSI defined radar patterns only. With other
      DFS domains you still are able to test pulse detections,
      but any pulse event will be accounted as radar event
      in the stats/logs.

Zefir Kurtisi (4):
  ath9k: set detector DFS domain in reg notifyer
  ath9k: set PHYRADAR in RX filter when on DFS channel
  ath9k: forward pulse events to DFS pulse detector
  ath9k: set radar config if switching to DFS channel

 drivers/net/wireless/ath/ath9k/init.c |    4 ++++
 drivers/net/wireless/ath/ath9k/main.c |   10 ++++++++++
 drivers/net/wireless/ath/ath9k/recv.c |    9 +++++++++
 3 files changed, 23 insertions(+), 0 deletions(-)

-- 
1.7.4.1


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

end of thread, other threads:[~2012-05-25 15:16 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-22 19:50 [PATCH 0/4] ath9k: integrate DFS detection Zefir Kurtisi
2012-04-22 19:50 ` [ath9k-devel] " Zefir Kurtisi
2012-04-22 19:50 ` [PATCH 1/4] ath9k: set detector DFS domain in reg notifyer Zefir Kurtisi
2012-04-22 19:50   ` [ath9k-devel] " Zefir Kurtisi
2012-04-22 19:50 ` [PATCH 2/4] ath9k: set PHYRADAR in RX filter when on DFS channel Zefir Kurtisi
2012-04-22 19:50   ` [ath9k-devel] " Zefir Kurtisi
2012-04-22 20:00   ` Felix Fietkau
2012-04-22 20:00     ` [ath9k-devel] " Felix Fietkau
2012-04-23  9:12     ` Zefir Kurtisi
2012-04-23  9:12       ` [ath9k-devel] " Zefir Kurtisi
2012-04-23 17:23       ` Felix Fietkau
2012-04-23 17:23         ` [ath9k-devel] " Felix Fietkau
2012-04-23 17:27         ` Chadd, Adrian
2012-04-23 17:27           ` [ath9k-devel] " Chadd, Adrian
2012-04-23 18:28         ` Luis R. Rodriguez
2012-04-23 18:28           ` [ath9k-devel] " Luis R. Rodriguez
2012-04-23 17:29       ` Christian Lamparter
2012-04-23 17:29         ` [ath9k-devel] " Christian Lamparter
2012-04-22 19:50 ` [PATCH 3/4] ath9k: forward pulse events to DFS pulse detector Zefir Kurtisi
2012-04-22 19:50   ` [ath9k-devel] " Zefir Kurtisi
2012-05-25 15:16   ` Benoit Papillault
2012-04-22 19:50 ` [PATCH 4/4] ath9k: set radar config if switching to DFS channel Zefir Kurtisi
2012-04-22 19:50   ` [ath9k-devel] " Zefir Kurtisi
2012-04-27 20:50   ` Adrian Chadd
2012-04-27 20:50     ` [ath9k-devel] " Adrian Chadd

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.