linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christian Lamparter <chunkeey@googlemail.com>
To: "Michal Kudelski" <michal@idsia.ch>
Cc: linux-wireless@vger.kernel.org
Subject: Re: carl9170 driver - reducing the output power
Date: Tue, 26 Jun 2012 19:45:08 +0200	[thread overview]
Message-ID: <201206261945.08250.chunkeey@googlemail.com> (raw)
In-Reply-To: <web-69401031@ti-edu.ch>

On Tuesday, June 26, 2012 02:10:25 PM Michal Kudelski wrote:
> Thank you for the response! Indeed, when I used the latest 
> compat-wireless, I was able to control the output power.

I'm glad I could help.
 
> Now, another question arises: what is the lowest supported 
> power level? Do you have any hardware specifications of 
> AR9170 that would say what is the lowest power level 
> supported by the hardware?

No, I'm sorry, but I don't have such a thing (Maybe Adrian
knows more). From what I knot, the lowest possible value
for the "tpc" registers and the tx descriptor tpc is "0"
(there's no "sign" bit so I'm afraid anything lower than
0 is not possible).
 
> With iw/iwconfig commands, the lowest achievable power is 
> 1 dbm. But I'm thinking about modifying your code in order 
> to write fixed values to the corresponding registers. And 
> I need to know what to write into the registers in order 
> to obtain the lowest possible power :-) .

The power is set by:
carl9170_tx_rate_tpc_chains in tx.c (for most outgoing frame -
except control frames like ACKs/ERP/... which are
controlled by carl9170_set_mac_tpc in mac.c)

Regards,
	Christian

      reply	other threads:[~2012-06-26 17:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-25 10:38 carl9170 driver - reducing the output power Michal Kudelski
2012-06-25 17:33 ` Christian Lamparter
2012-06-26 12:10   ` Michal Kudelski
2012-06-26 17:45     ` Christian Lamparter [this message]

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=201206261945.08250.chunkeey@googlemail.com \
    --to=chunkeey@googlemail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=michal@idsia.ch \
    /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).