calling ath_update_txpow

Brooks Davis brooks at one-eyed-alien.net
Mon Aug 15 17:22:44 GMT 2005


On Mon, Aug 15, 2005 at 12:05:46PM -0500, Sam Pierson wrote:
> Hi all,
> 
> I have been looking at this function in if_ath.c:
> 
> static void
> ath_update_txpow(struct ath_softc *sc)
> 
> Is there an example somewhere of using this function in
> a user-space application to control the signal strength?
> Up until this point I've just been stringing together system()
> calls saying "ifconfig ath0 txpower" and it's very dirty.  I'd like
> to be able to actually use the device driver and not ifconfig.

ath_update_txpow is a kernel function and can not be called from an
application.  If you want to avoid calling ifconfig by hand, you need to
do what it does and use the IOCTL interface to the 802.11 layer.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20050815/80e2f316/attachment.bin


More information about the freebsd-hackers mailing list