Search Linux Wireless

Re: [ath9k-devel] trying to set tx power (using txpower option)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/08/2010 10:28 AM, Johannes Berg wrote:
On Fri, 2010-10-08 at 10:24 -0700, Ben Greear wrote:

There's a later division by 100 to go from mBm to dBm ... I think you
want 2000, not 20.

Well, it's documented in iw to be 'mBm', though I surely wouldn't have known
what that stood for (nothing useful shows up on google for 'mBm units').

Suck. I don't even know why we did that in iw though, couldn't we have
used dBm floats?

Looks like this iw change has been out there a while.

Maybe change iw:

*  If value is < 100, assume it's dBm and convert for user.
   * Warn them?

*  If it's a float, convert to dBm for user.

Otherwise, leave it as is.

For what it's worth, 'iwconfig' works as is (using dBm units).

Thanks,
Ben


johannes


--
Ben Greear <greearb@xxxxxxxxxxxxxxx>
Candela Technologies Inc  http://www.candelatech.com

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux