From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 8 03:07:25 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EAA716A41C for ; Wed, 8 Jun 2005 03:07:25 +0000 (GMT) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4EA843D1D for ; Wed, 8 Jun 2005 03:07:24 +0000 (GMT) (envelope-from sam@errno.com) Received: from [66.127.85.94] ([66.127.85.94]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id j5837Nms053560 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 7 Jun 2005 20:07:24 -0700 (PDT) (envelope-from sam@errno.com) Message-ID: <42A660F9.3000302@errno.com> Date: Tue, 07 Jun 2005 20:07:37 -0700 From: Sam Leffler Organization: Errno Consulting User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Sam Pierson References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Hackers Subject: Re: Use if_ath.c for on the fly transmission power change? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2005 03:07:25 -0000 Sam Pierson wrote: > I was curious if there was a way to use the if_ath.c file in order to change > transmission power on the fly in the middle of a program. This is in if_ath: > > ath_hal_setuptxdesc(ah, ds > , pktlen /* packet length */ > , hdrlen /* header length */ > , atype /* Atheros packet type */ > , 0x60 /* txpower XXX */ > , txrate, 1+10 /* series 0 rate/tries */ > , iswep ? sc->sc_ic.ic_wep_txkey : HAL_TXKEYIX_INVALID > , antenna /* antenna mode */ > , flags /* flags */ > , ctsrate /* rts/cts rate */ > , ctsduration /* rts/cts duration */ > ); > > So I would assume there is a way to do it, although I seem stuck. Do I have > to construct each packet by hand (is this even feasible)? I saw back in > September that Sam Leffler said "per-packet TPC is not working right now", > so I assume that it may have been worked on or at least checked out since > then. Still no support for TPC. There's a sysctl knob for a global power setting but nothing per-packet. Sam