From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 20:03:19 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B6B6106564A for ; Wed, 1 Aug 2012 20:03:19 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1955D8FC16 for ; Wed, 1 Aug 2012 20:03:18 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so1718140pbb.13 for ; Wed, 01 Aug 2012 13:03:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=664XDBykZmeAcDsYvtCkqsZn7MwxNssATC7Hs8ommEs=; b=MUZVzpFvM+M9SkE4+y6Krbf7b3ZPqvIeu+oaHyXFbI6lgoB6hgHAdMKEvw6NOjLIhG Bly9XTHJ2YOxG1Di7lzm9iAtSoHh7Ab2txB258Oq9YLUnpcfBTJ28Sv2KgA8X8C1KTAq W2/XamaLdHacUJY06WHZRZEAkZsjRw3ktwRA9bbOzHYQxL+NZ2tj/c7V7vfa0h6uIrEo h23SYXyKaTQq3zNicSKPq/8l8hgqum0ijSFEbjCdMHzSUN9pWz4kY1Tsw4J03PFEK0Bg NJhCpx/KHyngBsAzGsTPWcZhkTd47Kpjbs0HLzEzixNfZgN2M0IKDnr3DXQ8iM9TiG1F YzbQ== MIME-Version: 1.0 Received: by 10.68.241.35 with SMTP id wf3mr54276913pbc.102.1343851398437; Wed, 01 Aug 2012 13:03:18 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.66.136 with HTTP; Wed, 1 Aug 2012 13:03:18 -0700 (PDT) In-Reply-To: <475A4E02EFF4724A9E58F55A56AC1316063D6752@APEVS1.ap.ci.root> References: <475A4E02EFF4724A9E58F55A56AC1316063B3323@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063B35EB@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063D6752@APEVS1.ap.ci.root> Date: Wed, 1 Aug 2012 13:03:18 -0700 X-Google-Sender-Auth: 1ZR27y-sCFgu7Vh6Y_WQGbkBXaM Message-ID: From: Adrian Chadd To: "Wright, Brett" Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Atheros DFS radar detection X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Aug 2012 20:03:19 -0000 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