[Tfug] Quick embedded linux question
Ryan Cresawn
jrcresawn at gmail.com
Mon Sep 29 07:24:38 MST 2008
On Mon, Sep 29, 2008 at 6:11 AM, Matthew T. Eskes <meskes at gmail.com> wrote:
> I have a buffalo WHR-G125 router with DD-WRT, what I am wondering is if
> anyone in this channel would have any knowledge of the hardware on this
> device.. I am writing a script which will turn the AP radio completely off
> between the hours of 2200 and 0600. I cant seem to find the documentation of
> the function between linux and the hardware in order to find the block
> device and have the script, via cron enable/disable it. Now I emailed
> emailed dd-wrt to ask about this question and even went as far as explaining
> to them what I was wanting to do, why I was wanting to do it and why I
> didn't want to use the "Access Restrictions" and they still told me to use
> it so I'm kinda in between a rock and hard place. I'm now hoping that
> someone on this list could help me with the advice.
I recommend reading the man page for iwconfig. The section on txpower is below:
txpower
For cards supporting multiple transmit powers, sets the transmit
power in dBm. If W is the power in Watt, the power in dBm is P =
30 + 10.log(W). If the value is postfixed by mW, it will be
automatically converted to dBm.
In addition, on and off enable and disable the radio, and auto
and fixed enable and disable power control (if those features
are available).
Examples :
iwconfig eth0 txpower 15
iwconfig eth0 txpower 30mW
iwconfig eth0 txpower auto
iwconfig eth0 txpower off
Ryan
More information about the tfug
mailing list