From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 03:14:58 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 6050C106564A for ; Wed, 1 Aug 2012 03:14:58 +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 7AD7C8FC0A for ; Wed, 1 Aug 2012 03:14:57 +0000 (UTC) Authentication-Results: cooperlighting-sw.cooperlighting.com; dkim=neutral (message not signed) header.i=none X-IronPort-AV: E=Sophos;i="4.77,690,1336363200"; d="scan'208";a="63621191" Received: from cipt0175.nam.ci.root ([10.132.108.175]) by cooperlighting-sw.cooperlighting.com with ESMTP; 31 Jul 2012 23:13:49 -0400 Received: from APEVS1.AP.CI.ROOT ([10.180.2.21]) by cipt0175.NAM.CI.ROOT with Microsoft SMTPSVC(6.0.3790.4675); Tue, 31 Jul 2012 23:13:49 -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: B++n CCVe CXk9 DnH7 Edd7 E2u+ FIbd FxKO F15z GW/S Gd5a HSeo HbjL Hx9S IiW2 KF7D; 1; ZgByAGUAZQBiAHMAZAAtAHcAaQByAGUAbABlAHMAcwBAAGYAcgBlAGUAYgBzAGQALgBvAHIAZwA=; Sosha1_v1; 7; {B664E27A-503A-4D6D-8ED9-50C6B15E882F}; YgByAGUAdAB0AC4AdwByAGkAZwBoAHQAQABjAG8AbwBwAGUAcgBpAG4AZAB1AHMAdAByAGkAZQBzAC4AYwBvAG0A; Wed, 01 Aug 2012 03:13:22 GMT; QQB0AGgAZQByAG8AcwAgAEQARgBTACAAcgBhAGQAYQByACAAZABlAHQAZQBjAHQAaQBvAG4A x-cr-puzzleid: {B664E27A-503A-4D6D-8ED9-50C6B15E882F} Content-class: urn:content-classes:message Date: Wed, 1 Aug 2012 11:13:22 +0800 Message-ID: <475A4E02EFF4724A9E58F55A56AC1316063B3323@APEVS1.ap.ci.root> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Atheros DFS radar detection Thread-Index: Ac1vk5uBjfla8JFcSkWAzElLGC8XNg== From: "Wright, Brett" To: X-OriginalArrivalTime: 01 Aug 2012 03:13:49.0077 (UTC) FILETIME=[AB709450:01CD6F93] Subject: 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 03:14:58 -0000 Hi All, I've been trying to get DFS radar detection working with Atheros ar5212 (and later). As for matching the ETSI/FCC radar patterns that is OK - I can make the open source DFS code comply. The problem is that it is too sensitive (i.e. too many false detects). What I have found is that using ar5213 I get LOTS of radar phy errors just for normal crc error free data transfer. Even just an iperf test on the bench will give me approx 1 radar phy error for every 5 or so tx/rx frame. This means that any "real" data of sufficient data rate for these false pulses to match the radar patterns will trigger false detection of radar and a channel change... (usually iperfing for a couple of minutes is enough!) One approach I've been looking at is some "smarts" that look at how much real data is being received and try to decide what "pulses" are not real and discard them. However this risks having a radio that does not always detect real radar co-incident with when the radio is very busy. I also can't help but feel there is some other way to detect and weed out these "false" phy radar errors. (for example FreeBSD defines HAL_PHYERR_FALSE_RADAR_EXT - I'm not even sure what this is/does). Any clues/info anyone can provide about how to determine what phy radar errors are potentially false would be a huge help... Thanks again Brett Wright