Date: Wed, 1 Aug 2012 13:03:18 -0700 From: Adrian Chadd <adrian@freebsd.org> To: "Wright, Brett" <Brett.Wright@cooperindustries.com> Cc: freebsd-wireless@freebsd.org Subject: Re: Atheros DFS radar detection Message-ID: <CAJ-Vmo=8X5QW00jrZ_3qmSpKYyiKb%2B5Lcs7zE1mhnHjH3cM5=Q@mail.gmail.com> In-Reply-To: <475A4E02EFF4724A9E58F55A56AC1316063D6752@APEVS1.ap.ci.root> References: <475A4E02EFF4724A9E58F55A56AC1316063B3323@APEVS1.ap.ci.root> <CAJ-VmomJOuu334UamvG7=t2oDyq-UNwdCzEUJ0ytT0REKfFxdA@mail.gmail.com> <475A4E02EFF4724A9E58F55A56AC1316063B35EB@APEVS1.ap.ci.root> <CAJ-Vmo=BXmO9pOPvqhcg_ZFWfgehb3xjrkokQAqAi2hBHS=jcg@mail.gmail.com> <CAJ-VmomRhPnw9uLZXGSd-nK1abLuupLRw24J=rS4SGFJXieiLw@mail.gmail.com> <475A4E02EFF4724A9E58F55A56AC1316063D6752@APEVS1.ap.ci.root>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, These are the AR5212 HAL defaults: FIRPWR: -41 RRSSI: 12 HEIGHT: 20 PRSSI: 22 INBAND: 6 I don't know how they map to that hex value, i'd have to read the register values. I'd suggest you bring up an AR5212 on FreeBSD and look at what's done in dev/ath/ath_dfs/null/dfs_null.c - I have a set of default parameters (but for the AR5416 and later chips, with a specific antenna config) which you can change for the AR5212. Then just change #if 0 to #if 1 in the dfs enable routine. You can then follow the instructions at http://wiki.freebsd.org/dev/ath%284%29/RadarFFT to enable radar PHY errors - the patch isn't needed, just set the sysctl value appropriately. You will then get PHY errors show up via radiotap. I also have a tool in tools/tools/ath/athradar/ which lets you view and set the radar parameters. You should tinker with that whilst doing some traffic. I personally think the FreeBSD ath driver code is a little cleaner than the madwifi code. :-) The actual radar parameter description for the AR5212 era NICs is covered in the patent - http://wiki.freebsd.org/dev/ath_hal%284%29/RadarDetection . The later chips introduce new options and behaviour. I'll see where those patents are hiding and either publish the patents or a description about what those parameters do. Thanks, Adrian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmo=8X5QW00jrZ_3qmSpKYyiKb%2B5Lcs7zE1mhnHjH3cM5=Q>