From: Ben Greear <greearb@candelatech.com>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] trying to set tx power (using txpower option)
Date: Fri, 08 Oct 2010 10:24:50 -0700 [thread overview]
Message-ID: <4CAF53E2.8030306@candelatech.com> (raw)
In-Reply-To: <1286557944.3612.5.camel@jlt3.sipsolutions.net>
On 10/08/2010 10:12 AM, Johannes Berg wrote:
> On Fri, 2010-10-08 at 10:07 -0700, Ben Greear wrote:
>
>> Well, the command fails because of this check (mbm is 20 in his case)
>> cfg.c:
>> case NL80211_TX_POWER_FIXED:
>> if (mbm< 0 || (mbm % 100))
>> return -EOPNOTSUPP;
>>
>> That mbm % 100 looks quite strange to me..any idea what that is supposed to
>> accomplish?
>
> 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').
Thanks,
Ben
>
> johannes
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
WARNING: multiple messages have this Message-ID (diff)
From: Ben Greear <greearb@candelatech.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: "Luis R. Rodriguez" <lrodriguez@Atheros.com>,
"Luis R. Rodriguez" <mcgrof@gmail.com>,
ath9k <ath9k-devel@venema.h4ckr.net>,
linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [ath9k-devel] trying to set tx power (using txpower option)
Date: Fri, 08 Oct 2010 10:24:50 -0700 [thread overview]
Message-ID: <4CAF53E2.8030306@candelatech.com> (raw)
In-Reply-To: <1286557944.3612.5.camel@jlt3.sipsolutions.net>
On 10/08/2010 10:12 AM, Johannes Berg wrote:
> On Fri, 2010-10-08 at 10:07 -0700, Ben Greear wrote:
>
>> Well, the command fails because of this check (mbm is 20 in his case)
>> cfg.c:
>> case NL80211_TX_POWER_FIXED:
>> if (mbm< 0 || (mbm % 100))
>> return -EOPNOTSUPP;
>>
>> That mbm % 100 looks quite strange to me..any idea what that is supposed to
>> accomplish?
>
> 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').
Thanks,
Ben
>
> johannes
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
next prev parent reply other threads:[~2010-10-08 17:24 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-01 12:04 [ath9k-devel] trying to set tx power (using txpower option) At Santos
2010-10-08 9:46 ` At Santos
2010-10-08 11:12 ` Peter Stuge
2010-10-08 15:27 ` Luis R. Rodriguez
2010-10-08 16:23 ` At Santos
2010-10-08 16:45 ` Luis R. Rodriguez
2010-10-08 16:45 ` Luis R. Rodriguez
2010-10-08 16:48 ` Ben Greear
2010-10-08 16:48 ` Ben Greear
2010-10-08 16:52 ` Luis R. Rodriguez
2010-10-08 16:52 ` Luis R. Rodriguez
2010-10-08 17:07 ` Ben Greear
2010-10-08 17:07 ` Ben Greear
2010-10-08 17:12 ` Johannes Berg
2010-10-08 17:12 ` Johannes Berg
2010-10-08 17:24 ` Ben Greear [this message]
2010-10-08 17:24 ` Ben Greear
2010-10-08 17:28 ` Johannes Berg
2010-10-08 17:28 ` Johannes Berg
2010-10-08 17:38 ` Ben Greear
2010-10-08 17:38 ` Ben Greear
2010-10-08 17:41 ` David Lamparter
2010-10-08 17:41 ` David Lamparter
2010-10-08 18:00 ` David Willmore
2010-10-08 18:00 ` David Willmore
2010-10-08 18:05 ` Johannes Berg
2010-10-08 18:05 ` Johannes Berg
2010-10-08 23:10 ` David Willmore
2010-10-08 23:10 ` David Willmore
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CAF53E2.8030306@candelatech.com \
--to=greearb@candelatech.com \
--cc=ath9k-devel@lists.ath9k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.