From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 05:27:08 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EA9C110656DA; Wed, 1 Aug 2012 05:27:07 +0000 (UTC) (envelope-from prvs=5537fc3d0=Brett.Wright@cooperindustries.com) Received: from cooperlighting-sw.cooperlighting.com (cooperlighting-sw.cooperlighting.com [216.130.131.68]) by mx1.freebsd.org (Postfix) with ESMTP id 8EEC48FC12; Wed, 1 Aug 2012 05:27:07 +0000 (UTC) Authentication-Results: cooperlighting-sw.cooperlighting.com; dkim=neutral (message not signed) header.i=none X-IronPort-AV: E=Sophos;i="4.77,691,1336363200"; d="scan'208";a="63628503" Received: from cipt0174.nam.ci.root ([10.132.108.174]) by cooperlighting-sw.cooperlighting.com with ESMTP; 01 Aug 2012 01:27:07 -0400 Received: from APEVS1.AP.CI.ROOT ([10.180.2.21]) by cipt0174.NAM.CI.ROOT with Microsoft SMTPSVC(6.0.3790.4675); Wed, 1 Aug 2012 01:27:06 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable x-cr-hashedpuzzle: AKlP BWXz DiRT Jj2A KZuT KyMF NmaT OV5v OvOp PELO P3Hj R0b5 SGw+ UJtZ YSN9 Yb4T; 2; YQBkAHIAaQBhAG4AQABmAHIAZQBlAGIAcwBkAC4AbwByAGcAOwBmAHIAZQBlAGIAcwBkAC0AdwBpAHIAZQBsAGUAcwBzAEAAZgByAGUAZQBiAHMAZAAuAG8AcgBnAA==; Sosha1_v1; 7; {F1E41F05-3385-42D7-9551-72AEBB4181F6}; YgByAGUAdAB0AC4AdwByAGkAZwBoAHQAQABjAG8AbwBwAGUAcgBpAG4AZAB1AHMAdAByAGkAZQBzAC4AYwBvAG0A; Wed, 01 Aug 2012 05:26:55 GMT; UgBFADoAIABBAHQAaABlAHIAbwBzACAARABGAFMAIAByAGEAZABhAHIAIABkAGUAdABlAGMAdABpAG8AbgA= x-cr-puzzleid: {F1E41F05-3385-42D7-9551-72AEBB4181F6} Content-class: urn:content-classes:message Date: Wed, 1 Aug 2012 13:26:55 +0800 Message-ID: <475A4E02EFF4724A9E58F55A56AC1316063B35EB@APEVS1.ap.ci.root> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Atheros DFS radar detection Thread-Index: Ac1vlcpG3/jrrSotQSqH8DHTOg08/wAAb9Dw References: <475A4E02EFF4724A9E58F55A56AC1316063B3323@APEVS1.ap.ci.root> From: "Wright, Brett" To: "Adrian Chadd" X-OriginalArrivalTime: 01 Aug 2012 05:27:06.0728 (UTC) FILETIME=[4A694680:01CD6FA6] 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 05:27:08 -0000 Hi Adrian, > -----Original Message----- > From: adrian.chadd@gmail.com [mailto:adrian.chadd@gmail.com] On Behalf > Of Adrian Chadd > Sent: Wednesday, 1 August 2012 1:23 PM > Which source? The stuff in madwifi-dfs? or elsewhere? Yes madwifi-dfs.=20 > Which radar configuration parameters are you using? > I'd first start by looking at the radar parameters that you're using. > What are they? I think this is the standard setup for DFS, firstly setup the rx filter for phy radar errors (am not using interference mitigation so HAL_RX_FILTER_PHYERR is not set): rfilt |=3D HAL_RX_FILTER_PHYRADAR; ath_hal_setrxfilter(ah, rfilt); Then in the rx interrupt check for radar pulses: if ((HAL_RXERR_PHY =3D=3D rs->rs_status) && (HAL_PHYERR_RADAR =3D=3D (rs->rs_phyerr & 0x1f)) && !(bf->bf_status & ATH_BUFSTATUS_RADAR_DONE) && (ic->ic_flags & IEEE80211_F_DOTH)) check_for_radar =3D 1; And then these pulses are analyzed and potentially matched to the required radar patterns... The problem as I see it is that I get these phy radar errors even when the only thing going on is valid (i.e. crc error free data). There is no other RF noise around, I can even do the test with coax and attenuators between my two modules. I only get the "false pulse" phy radar errors when I am transferring data between my pair of modules under test.=20 Thanks Brett