linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Ben Greear <greearb@candelatech.com>
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 19:12:23 +0200	[thread overview]
Message-ID: <1286557944.3612.5.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <4CAF4FDA.8060908@candelatech.com>

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.

johannes


  reply	other threads:[~2010-10-08 17:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <SNT111-W333C4BA6050D535151071FFB690@phx.gbl>
     [not found] ` <SNT111-W2989DC6A52022428756E6FB500@phx.gbl>
     [not found]   ` <20101008111221.5425.qmail@stuge.se>
     [not found]     ` <AANLkTimAfH8ChkjwFB7e2kMbJyxaZQZMSxTcThva=jgN@mail.gmail.com>
     [not found]       ` <SNT111-W21A1F92DC5DADE5968C8CCFB500@phx.gbl>
2010-10-08 16:45         ` [ath9k-devel] trying to set tx power (using txpower option) Luis R. Rodriguez
2010-10-08 16:48           ` Ben Greear
2010-10-08 16:52             ` Luis R. Rodriguez
2010-10-08 17:07               ` Ben Greear
2010-10-08 17:12                 ` Johannes Berg [this message]
2010-10-08 17:24                   ` Ben Greear
2010-10-08 17:28                     ` Johannes Berg
2010-10-08 17:38                       ` Ben Greear
2010-10-08 17:41                     ` David Lamparter
2010-10-08 18:00                       ` David Willmore
2010-10-08 18:05                         ` Johannes Berg
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=1286557944.3612.5.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=ath9k-devel@venema.h4ckr.net \
    --cc=greearb@candelatech.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=lrodriguez@Atheros.com \
    --cc=mcgrof@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).