From: Alexander Egorenkov <egorenar@gmail.com>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] Radar Detection and DFS status
Date: Thu, 06 May 2010 22:11:23 +0200 [thread overview]
Message-ID: <hrv7pa$fqb$1@dough.gmane.org> (raw)
In-Reply-To: <4BDBF97C.90509@yahoo.de>
Am 01.05.2010 11:50, schrieb Robert Meschke:
> Am 29.04.2010 22:15, schrieb Benoit PAPILLAULT:
>> Hi Robert,
>>
>> If you have access to signal generators, I would suggest a very simple
>> and easy start : try to add the code to detect pulse like it was done
>> in madwifi-dfs (ported to madwifi/trunk BTW). Then, just send few
>> pulses and you'll see if you AR9160 based card will detect it. This is
>> how I did when writing madwifi-dfs... a long time ago :-).
>>
>> Maybe 802.11n hardware has some stuff specific to radar detection
>> since it probably needs to distinguish between primary& secondary
>> channel. Is there someone (Luis?) that can confirm?
>>
>> Regards,
>> Benoit
>>
>>
> Thank you very much Benoit! I'll do my best and give it a try. I'll
> report if I have success :-)
>
> I would have a better feeling with that, if I knew more about the AR9160
> (Register adresses etc.). Does anybody else have a little more information?
> Thanks!
>
> Regards,
> Robert
Hi, i'm currently studying ath9k Linux driver and FreeBSD ath driver
and wanted also to know how DFS on Atheros works. And i found something
interesting in ath_hal on FreeBSD 8. I think it might interest you.
First you should look at file ar5212_recv.c.
There you will find the function ar5212SetRxFilter which activates
notifications about radar phy errors. Atheros notifies the driver about
radar signal through Rx queue (Rx descriptors).
PHY error mask register is AR_PHY_ERR = 0x810c.
And to activate radar notification, you have to set bit AR_PHY_ERR_RADAR
= 0x00000020 in this register.
When radar signal is detected by PHY then the PHY error flag (AR_PHYErr)
is set in the Rx descriptor upon completion. Look at the function
ar5212ProcRxDesc in the file ar5212_recv.c. This flag says that
a PHY error occurred. To determine which one happened you have to look
at PHY eror code in the Rx descriptor.
I hope it will help you further :-)
Alex
next prev parent reply other threads:[~2010-05-06 20:11 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-29 12:34 [ath9k-devel] Radar Detection and DFS status Robert Meschke
2010-04-29 20:15 ` Benoit PAPILLAULT
2010-05-01 9:50 ` Robert Meschke
2010-05-06 20:11 ` Alexander Egorenkov [this message]
2010-05-06 20:36 ` Alexander Egorenkov
2010-05-06 20:55 ` Luis R. Rodriguez
-- strict thread matches above, loose matches on Subject: below --
2010-04-28 9:27 Robert Meschke
2010-04-28 16:34 ` Luis R. Rodriguez
2009-02-11 17:00 mementux
2009-02-11 21:41 ` Luis R. Rodriguez
2009-02-11 21:41 ` Luis R. Rodriguez
2009-02-12 2:15 ` Sujith
2009-02-12 2:15 ` Sujith
2009-02-12 12:56 ` Alberto Pollastro
2009-02-12 12:56 ` Alberto Pollastro
2009-02-12 15:53 ` Luis R. Rodriguez
2009-02-12 15:53 ` Luis R. Rodriguez
2009-02-12 20:39 ` Alberto Pollastro
2009-02-12 20:39 ` Alberto Pollastro
2009-02-12 21:31 ` Luis R. Rodriguez
2009-02-12 21:31 ` Luis R. Rodriguez
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='hrv7pa$fqb$1@dough.gmane.org' \
--to=egorenar@gmail.com \
--cc=ath9k-devel@lists.ath9k.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: link
Be 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.