From owner-freebsd-wireless@FreeBSD.ORG Thu Nov 14 22:47:54 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B2E8DF8B for ; Thu, 14 Nov 2013 22:47:54 +0000 (UTC) Received: from mail-qa0-x22b.google.com (mail-qa0-x22b.google.com [IPv6:2607:f8b0:400d:c00::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7860124A2 for ; Thu, 14 Nov 2013 22:47:54 +0000 (UTC) Received: by mail-qa0-f43.google.com with SMTP id cm18so104309qab.16 for ; Thu, 14 Nov 2013 14:47:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=f6Ki3I29poOzbZDQWeouTlbw4grX0R4DcitYNOi/K8Y=; b=bnX6huq6BT5g1eAkOpGaFmoMe59iEdXuOJwtSvmb6xAFNqt8ATaLFmXYpLWN/Vu+0F bqC14qYq5JZCjegSC5P7UX8XHqh5/vh1vAbYpKlWwsT+q5OOyY5SZqj8Jid7L5jNhS0K 82bOxsYluXHwhtdczjoCDjM/cWZu0sA8dYtiduDMgOsoeufxmSVEcAlkQ8A5kblwVOaj 2BHE2PXqvwwuy3Cr5sgCBroLhpzJMdwhwWEoceN5D5yqRXrmnOT9IIUjYzmhuDQIqt1V ZurJuPtZgT3jizlwSMLihxALRW69OUQxorWuxvRF4DQjtwp/vepTiL0JCsBKZebqDmaa nOyQ== MIME-Version: 1.0 X-Received: by 10.224.28.130 with SMTP id m2mr5943635qac.98.1384469273628; Thu, 14 Nov 2013 14:47:53 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.224.207.66 with HTTP; Thu, 14 Nov 2013 14:47:53 -0800 (PST) In-Reply-To: <20131114234220.68ab67d7@fusen> References: <20131114234220.68ab67d7@fusen> Date: Thu, 14 Nov 2013 14:47:53 -0800 X-Google-Sender-Auth: neGnStOev47WMG9Ztvxmu_XOSPA Message-ID: Subject: Re: Using 3T3R Atheros 802.11n PCIe card in 2T2R mode From: Adrian Chadd To: Christophe Prevotaux Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.16 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: Thu, 14 Nov 2013 22:47:54 -0000 Hi! On 14 November 2013 14:42, Christophe Prevotaux wrote: > > Hi everyone, > > I would like to know a few things: > > Is it possible to configure a 3T3R PCIe Atheros based card > to turn it into a 2T2R equivalent ? ( ie using only 2 antennas and > voiding the use of the 3rd one). Yup. But you can only do it on certain combinations. I think the only supported combination is enabling chain 0 and chain 2. > > If so how do you do this in FreeBSD ? You set a kenv variable that resource_int_value() can read at bootup. I _think_ it's: hint.ath.X.rx_chainmask= hint.ath.X.tx_chainmask= It's in ath_attach() in if_ath.c. Look for resource_int_value(). > Which version of FreeBSD will support that ( I guess 10 >) Yup, > 10 and later. > Any of you have recommendation on a known good card ? > > If there are multiple chipset that can do this I would > like to know which one. It should work for all of them. The one thing I need to validate though is the whole "calibration" versus "use" thing. In theory, we should be calibrating all of the chainmasks that are present in the EEPROM but only _using_ the ones we override for transmit and receive. I don't know if the HAL code is doing this. It would certainly be a simple enough project for someone to tackle. Thanks, -adrian