From: Dan Williams <dcbw@redhat.com>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: Anna Neal <anna@cozybit.com>,
linux-wireless@vger.kernel.org, libertas-dev@lists.infradead.org
Subject: Re: [PATCH] libertas: Improvements on automatic tx power control via SIOCSIWTXPOW.
Date: Mon, 29 Sep 2008 16:59:37 -0400 [thread overview]
Message-ID: <1222721977.27930.45.camel@localhost.localdomain> (raw)
In-Reply-To: <20080926162643.GB3483@tuxdriver.com>
On Fri, 2008-09-26 at 12:26 -0400, John W. Linville wrote:
> On Thu, Sep 25, 2008 at 04:19:31PM -0700, Anna Neal wrote:
> > iwconfig txpower can now be used to set tx power to fixed or auto. If set to
> > auto the default firmware settings are used.
> >
> > The command CMD_802_11_PA_CFG is only sent to older firmware, as Dan Williams
> > noted the command was no longer supported in firmware V9+.
> >
> > Signed-off-by: Anna Neal <anna@cozybit.com>
> > Signed-off-by: Javier Cardona <javier@cozybit.com>
>
> I had already committed an earlier version. I believe I have
> incorporated all the changes in "libertas: Improvements on automatic tx
> power control via SIOCSIWTXPOW (fixups)" -- please feel free to verify.
A few missing bits, sorry for the confusion. Merge fixups against
current wireless-testing below.
Signed-off-by: Dan Williams <dcbw@redhat.com>
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c
index aee19fa..a912fb6 100644
--- a/drivers/net/wireless/libertas/cmd.c
+++ b/drivers/net/wireless/libertas/cmd.c
@@ -1949,7 +1949,7 @@ int lbs_set_tpc_cfg(struct lbs_private *priv, int enable, int8_t p0, int8_t p1,
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
cmd.action = cpu_to_le16(CMD_ACT_SET);
cmd.enable = !!enable;
- cmd.usesnr = !!enable;
+ cmd.usesnr = !!usesnr;
cmd.P0 = p0;
cmd.P1 = p1;
cmd.P2 = p2;
diff --git a/drivers/net/wireless/libertas/defs.h b/drivers/net/wireless/libertas/defs.h
index d21bb4e..076a636 100644
--- a/drivers/net/wireless/libertas/defs.h
+++ b/drivers/net/wireless/libertas/defs.h
@@ -189,16 +189,6 @@ static inline void lbs_deb_hex(unsigned int grp, const char *prompt, u8 *buf, in
#define MRVDRV_CMD_UPLD_RDY 0x0008
#define MRVDRV_CARDEVENT 0x0010
-
-/* Automatic TX control default levels */
-#define POW_ADAPT_DEFAULT_P0 13
-#define POW_ADAPT_DEFAULT_P1 15
-#define POW_ADAPT_DEFAULT_P2 18
-#define TPC_DEFAULT_P0 5
-#define TPC_DEFAULT_P1 10
-#define TPC_DEFAULT_P2 13
-
-
/* Automatic TX control default levels */
#define POW_ADAPT_DEFAULT_P0 13
#define POW_ADAPT_DEFAULT_P1 15
next prev parent reply other threads:[~2008-09-29 21:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-25 23:19 [PATCH] libertas: Improvements on automatic tx power control via SIOCSIWTXPOW Anna Neal
2008-09-26 14:49 ` Dan Williams
2008-09-26 16:26 ` John W. Linville
2008-09-29 20:59 ` Dan Williams [this message]
2008-09-29 21:20 ` John W. Linville
-- strict thread matches above, loose matches on Subject: below --
2008-09-11 18:17 Anna Neal
2008-09-11 18:37 ` Johannes Berg
2008-09-11 18:56 ` Anna Neal
2008-09-11 19:12 ` Johannes Berg
2008-09-15 5:44 ` Dan Williams
2008-09-17 18:23 ` Anna Neal
2008-09-10 23:45 Anna Neal
2008-09-11 15:34 ` Dan Williams
2008-09-11 17:03 ` Anna Neal
2008-09-11 17:13 ` Anna Neal
2008-09-11 17:24 ` John W. Linville
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=1222721977.27930.45.camel@localhost.localdomain \
--to=dcbw@redhat.com \
--cc=anna@cozybit.com \
--cc=libertas-dev@lists.infradead.org \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.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).