Skip to contentSkip to conversation

Radar Detection and DFS status

ath9k-devel Robert Meschke 4 participants 6 messages Apr 29, 2010 – May 6, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

thank you for your immediate response, Luis. It's a pity that DFS is not supposed to work in the near future. A can provide more specific information. I am working on a project, where I really need the 5 Ghz band and have to respect national laws. I am using Ubiquiti Networks SR71-A MIMO mini pci radios, based on the Atheros AR 9160 bb/mac chip and AR5133 RF chip. I am really willing to implement DFS if it is somehow possible for me.
Former in this thread it was mentioned that Radar Pulse Detection is done by hardware itself and is supported by madwifi. I've checked the madwifi-hal and the one of Sam Leffler for Radar Detection stuff. The AR9160 is declared as compatible with AR5416 in the ah_devid.h:

/* AR5416 compatible devid's */
#define AR5416_DEVID_PCI 0x0023 /* AR5416 PCI (MB/CB) Owl */
#define AR5416_DEVID_PCIE 0x0024 /* AR5416 PCI-E (XB) Owl */

#define AR9160_DEVID_PCI    0x0027          /* AR9160 PCI Sowl */
#define AR9280_DEVID_PCI    0x0029          /* AR9280 PCI Merlin */
#define AR9280_DEVID_PCIE    0x002a          /* AR9280 PCI-E Merlin */
#define AR9285_DEVID_PCIE    0x002b          /* AR9285 PCI-E Kite */

Register adresses for Radar Detection are defined for AR5211+ in if_ath_radar.h. In the if_ath_radar.c this can be found:

if (ar_device(sc) >= 5211) {

...

}

It implies to me that Radar Detection performed by the madwifi Driver could possibly work for AR5416 (and therefore for AR9160, too).

It has to be mentioned that there are register adress definitions for Radar Detection in the hal of Sam Leffler but only for AR5211 and AR5212 and I've read in forum that the AR5416 does not have Radar Detection caps.

Are the hardware interfaces for Radar Detection of AR9160 and AR5211/12 the same and is there any chance for madwifi code to work for ath9k too (after necessary modifications)?

Have anybody else information on this topic? I have access to signal generators an spectrum analysers, so I could verify compliance with DFS but I need the exact hardware specifications. Thanks in advance.

my warm regards
Robert

#1 lore raw

Robert Meschke a ?crit :

Quoted 22 lines

Hi,

thank you for your immediate response, Luis. It's a pity that DFS is not supposed to work in the near future. A can provide more specific information. I am working on a project, where I really need the 5 Ghz band and have to respect national laws. I am using Ubiquiti Networks SR71-A MIMO mini pci radios, based on the Atheros AR 9160 bb/mac chip and AR5133 RF chip. I am really willing to implement DFS if it is somehow possible for me.
Former in this thread it was mentioned that Radar Pulse Detection is done by hardware itself and is supported by madwifi. I've checked the madwifi-hal and the one of Sam Leffler for Radar Detection stuff. The AR9160 is declared as compatible with AR5416 in the ah_devid.h:

/* AR5416 compatible devid's */
#define AR5416_DEVID_PCI 0x0023 /* AR5416 PCI (MB/CB) Owl */
#define AR5416_DEVID_PCIE 0x0024 /* AR5416 PCI-E (XB) Owl */

#define AR9160_DEVID_PCI    0x0027          /* AR9160 PCI Sowl */
#define AR9280_DEVID_PCI    0x0029          /* AR9280 PCI Merlin */
#define AR9280_DEVID_PCIE    0x002a          /* AR9280 PCI-E Merlin */
#define AR9285_DEVID_PCIE    0x002b          /* AR9285 PCI-E Kite */

Register adresses for Radar Detection are defined for AR5211+ in if_ath_radar.h. In the if_ath_radar.c this can be found:

if (ar_device(sc) >= 5211) {

...

}

Quoted 9 lines

It implies to me that Radar Detection performed by the madwifi Driver could possibly work for AR5416 (and therefore for AR9160, too).

It has to be mentioned that there are register adress definitions for Radar Detection in the hal of Sam Leffler but only for AR5211 and AR5212 and I've read in forum that the AR5416 does not have Radar Detection caps.

Are the hardware interfaces for Radar Detection of AR9160 and AR5211/12 the same and is there any chance for madwifi code to work for ath9k too (after necessary modifications)?

Have anybody else information on this topic? I have access to signal generators an spectrum analysers, so I could verify compliance with DFS but I need the exact hardware specifications. Thanks in advance.

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

#2 lore raw

Am 29.04.2010 22:15, schrieb Benoit PAPILLAULT:

Quoted 8 lines

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 :-).

Quoted 8 lines

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

#3 lore raw

Am 01.05.2010 11:50, schrieb Robert Meschke:

Quoted 20 lines

Am 29.04.2010 22:15, schrieb Benoit PAPILLAULT:

Quoted 8 lines

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 :-).

Quoted 8 lines

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 :-)

Quoted 6 lines

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

#4 lore raw
In reply to Benoit PAPILLAULT

Am 29.04.2010 22:15, schrieb Benoit PAPILLAULT:

Quoted 40 lines

Robert Meschke a ?crit :

Quoted 22 lines

Hi,

thank you for your immediate response, Luis. It's a pity that DFS is not supposed to work in the near future. A can provide more specific information. I am working on a project, where I really need the 5 Ghz band and have to respect national laws. I am using Ubiquiti Networks SR71-A MIMO mini pci radios, based on the Atheros AR 9160 bb/mac chip and AR5133 RF chip. I am really willing to implement DFS if it is somehow possible for me.
Former in this thread it was mentioned that Radar Pulse Detection is done by hardware itself and is supported by madwifi. I've checked the madwifi-hal and the one of Sam Leffler for Radar Detection stuff. The AR9160 is declared as compatible with AR5416 in the ah_devid.h:

/* AR5416 compatible devid's */
#define AR5416_DEVID_PCI 0x0023 /* AR5416 PCI (MB/CB) Owl */
#define AR5416_DEVID_PCIE 0x0024 /* AR5416 PCI-E (XB) Owl */

#define AR9160_DEVID_PCI    0x0027          /* AR9160 PCI Sowl */
#define AR9280_DEVID_PCI    0x0029          /* AR9280 PCI Merlin */
#define AR9280_DEVID_PCIE    0x002a          /* AR9280 PCI-E Merlin */
#define AR9285_DEVID_PCIE    0x002b          /* AR9285 PCI-E Kite */

Register adresses for Radar Detection are defined for AR5211+ in if_ath_radar.h. In the if_ath_radar.c this can be found:

if (ar_device(sc)>= 5211) {

...

}

Quoted 9 lines

It implies to me that Radar Detection performed by the madwifi Driver could possibly work for AR5416 (and therefore for AR9160, too).

It has to be mentioned that there are register adress definitions for Radar Detection in the hal of Sam Leffler but only for AR5211 and AR5212 and I've read in forum that the AR5416 does not have Radar Detection caps.

Are the hardware interfaces for Radar Detection of AR9160 and AR5211/12 the same and is there any chance for madwifi code to work for ath9k too (after necessary modifications)?

Have anybody else information on this topic? I have access to signal generators an spectrum analysers, so I could verify compliance with DFS but I need the exact hardware specifications. Thanks in advance.

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 :-).

Quoted 6 lines

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

And AR9160 definetly supports DFS :-) Because it's a chipset for AP and routers for 2.4 and 5 GHZ band :-)
See http://www.atheros.com/news/AR9001.htm

#5 lore raw
Quoted 45 lines · Alexander Egorenkov

Am 29.04.2010 22:15, schrieb Benoit PAPILLAULT:

Quoted 44 lines

Robert Meschke a ?crit :

Quoted 22 lines

Hi,

thank you for your immediate response, Luis. It's a pity that DFS is not supposed to work in the near future. A can provide more specific information. I am working on a project, where I really need the 5 Ghz band and have to respect national laws. I am using Ubiquiti Networks SR71-A MIMO mini pci radios, based on the Atheros AR 9160 bb/mac chip and AR5133 RF chip. I am really willing to implement DFS if it is somehow possible for me.
Former in this thread it was mentioned that Radar Pulse Detection is done by hardware itself and is supported by madwifi. I've checked the madwifi-hal and the one of Sam Leffler for Radar Detection stuff. The AR9160 is declared as compatible with AR5416 in the ah_devid.h:

/* AR5416 compatible devid's ?*/
#define AR5416_DEVID_PCI ? ?0x0023 ? ? ? ? ?/* AR5416 PCI (MB/CB) Owl */ #define AR5416_DEVID_PCIE ? ?0x0024 ? ? ? ? ?/* AR5416 PCI-E (XB) Owl */ #define AR9160_DEVID_PCI ? ?0x0027 ? ? ? ? ?/* AR9160 PCI Sowl */ #define AR9280_DEVID_PCI ? ?0x0029 ? ? ? ? ?/* AR9280 PCI Merlin */ #define AR9280_DEVID_PCIE ? ?0x002a ? ? ? ? ?/* AR9280 PCI-E Merlin */ #define AR9285_DEVID_PCIE ? ?0x002b ? ? ? ? ?/* AR9285 PCI-E Kite */

Register adresses for Radar Detection are defined for AR5211+ in if_ath_radar.h. In the if_ath_radar.c this can be found:

if (ar_device(sc)>= 5211) {

...

}

Quoted 9 lines

It implies to me that Radar Detection performed by the madwifi Driver could possibly work for AR5416 (and therefore for AR9160, too).

It has to be mentioned that there are register adress definitions for Radar Detection in the hal of Sam Leffler but only for AR5211 and AR5212 and I've read in forum that the AR5416 does not have Radar Detection caps.

Are the hardware interfaces for Radar Detection of AR9160 and AR5211/12 the same and is there any chance for madwifi code to work for ath9k too (after necessary modifications)?

Have anybody else information on this topic? I have access to signal generators an spectrum analysers, so I could verify compliance with DFS but I need the exact hardware specifications. Thanks in advance.

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?

Quoted 6 lines
Quoted 2 lines

Regards,
Benoit

And AR9160 definetly supports DFS :-) Because it's a chipset for AP and routers for 2.4 and 5 GHZ band :-)
See http://www.atheros.com/news/AR9001.htm

DFS requires some software implemented which is not upstream, we are reviewing this possibility now.

Luis