Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Jun 2005 20:07:37 -0700
From:      Sam Leffler <sam@errno.com>
To:        Sam Pierson <samuel.pierson@gmail.com>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: Use if_ath.c for on the fly transmission power change?
Message-ID:  <42A660F9.3000302@errno.com>
In-Reply-To: <d9204e4c0506071207e129313@mail.gmail.com>
References:  <d9204e4c0506071207e129313@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42A660F9.3000302>