From owner-freebsd-wireless@FreeBSD.ORG Tue May 24 16:43:22 2011 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 5A179106566B for ; Tue, 24 May 2011 16:43:22 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 14B388FC08 for ; Tue, 24 May 2011 16:43:21 +0000 (UTC) Received: by ywf7 with SMTP id 7so3406827ywf.13 for ; Tue, 24 May 2011 09:43:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=aehYItMcIl3f0xO5QQ+/mhrhMy2xLDBNknUfnI7cUek=; b=EOKLi2U4Dfjb+Bx5vdbkO50LSZPtgBi//E1Cu7CzCzFbV5ZZhdxRKz2LU3b8vSaQnI 5HtYk0GXM19Ysk+N0nL9iSTsrm6Rw3q/J2xfydxLSFakU02oXnweYqP+S0C8z0zE3ANK ySpXxuRNoN2dohlKgmrPjFXKl4ls/yVP/kmPs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=gFahoI4MvSlpF+s9m1lyKLGIxikCt4FgWpiXlE65QNBEWTMuhtRM5uHvqRokJfsZYl SmzdtiQW15bHHPYC/j2+WrAz68jB05WHmzEnio6svNg19GqMkv4eGtDGjjtRCMIR5kG6 JwdNcsRE+q0BjpHnUJ7n2EQYwDUn6ehcmBTm4= MIME-Version: 1.0 Received: by 10.150.14.13 with SMTP id 13mr4476546ybn.438.1306255401261; Tue, 24 May 2011 09:43:21 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.150.91.12 with HTTP; Tue, 24 May 2011 09:43:21 -0700 (PDT) In-Reply-To: References: Date: Wed, 25 May 2011 00:43:21 +0800 X-Google-Sender-Auth: 2Y84xxUQKdtS0iHSTQq6_6kSTek Message-ID: From: Adrian Chadd To: Shant Kassardjian Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: SR71-A Txpower Question 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: Tue, 24 May 2011 16:43:22 -0000 Hi, ifconfig wlan0 txpower 0 merely sets the txpower to 0dBm, which isn't "off" strictly speaking. It's actually 1mW. The SR-71A also has a TX power offset in hardware. If I remember right, the hardware is actually a couple of dBm higher than what you configure. So when you configure 19 dBm, you're programming the hardware at 19dBm, but the hardware responds by allowing a max of 16dBm per channel, which is * 3 (3 TX chains, as per the patch I gave you) to give ~ 21dBm. I'd have to check the math to get the exact tx power offset but that's roughly what's going on. Now, if it's documented somewhere that 0 dBm should be "killing" the interface, let me know. :) Adrian On 25 May 2011 00:24, Shant Kassardjian wrote: > > Hello FreeBSD-Wireless, > > I've been running SR71-A on FreeBSD 8.1 for quite some time now and it's = been running very well. Many thanks to Adrian Chadd who really helped ironi= ng out all my questions! > > My only problem so far that I've noticed is that when I do: =A0ifconfig w= lan0 txpower 0; this does not turn off power to the wireless as it's suppos= e to and rather I have to bring down the interface manually to shut it down= hence whenever I need to start it up again I have to reconfigure the inter= face. > > >From my observation it looks like changing the txpower rate using ifconf= ig has little to no effect controlling this adapter. > > > My question is that, could it be because I have compiled the kernel with = the following modifications as suggested by Adrian Chadd to take advantage = of Max 3x antenna transmit power that I am having this problem? > > Edit sys/dev/ath/ath_hal/ar5416/ar5416.h: > > #define AR5416_DEFAULT_RXCHAINMASK =A0 =A0 =A07 > #define AR5416_DEFAULT_TXCHAINMASK =A0 =A0 =A07 > > > Does anyone else have this symptom with their SR71-A (AR5416)? > > > Many thanks in advance; > > Regards, > Shant K. > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0_______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.or= g" >