From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 7 19:07:22 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 0FF5416A41C for ; Tue, 7 Jun 2005 19:07:22 +0000 (GMT) (envelope-from samuel.pierson@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id B011843D4C for ; Tue, 7 Jun 2005 19:07:21 +0000 (GMT) (envelope-from samuel.pierson@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so51991wra for ; Tue, 07 Jun 2005 12:07:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=cC5+Kp5OSpaYYhDRw8nHxh9Lrtns6gsgd6v86LdjnOhR96GYHxS2R0wWa2rSGakS9SU+4zatBCOc1xjDyCce6wWJG5kyaideA5qRWAypg94EXRZs66P+WSk5LfIxALPd26poYKuvCcXeHqlExgSFW3m7FfNaTyzLee7iV+XJGJs= Received: by 10.54.16.63 with SMTP id 63mr1967612wrp; Tue, 07 Jun 2005 12:07:21 -0700 (PDT) Received: by 10.54.144.1 with HTTP; Tue, 7 Jun 2005 12:07:20 -0700 (PDT) Message-ID: Date: Tue, 7 Jun 2005 14:07:20 -0500 From: Sam Pierson To: FreeBSD Hackers Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: 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 Reply-To: Sam Pierson List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jun 2005 19:07:22 -0000 I was curious if there was a way to use the if_ath.c file in order to chang= e transmission power on the fly in the middle of a program. This is in if_a= th: 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 hav= e to construct each packet by hand (is this even feasible)? I saw back in=20 September that Sam Leffler said "per-packet TPC is not working right now",= =20 so I assume that it may have been worked on or at least checked out since= =20 then. Thanks