linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "John W. Linville" <linville@tuxdriver.com>
To: Andrea Merello <andreamrl@tiscali.it>
Cc: linux-wireless@vger.kernel.org, Alessandro Di Marco <dmr@c0nc3pt.com>
Subject: Re: [PATCH] Rtl8180 sa2400 ch14
Date: Wed, 14 May 2008 16:07:29 -0400	[thread overview]
Message-ID: <20080514200729.GA15712@tuxdriver.com> (raw)
In-Reply-To: <c68f135e0805100430s668492b0l56107f1fa4fc4ff7@mail.gmail.com>

On Sat, May 10, 2008 at 01:30:12PM +0200, Andrea Merello wrote:
> Rtl8180: fix wrong parameter in RF code funcion invokation for philip=
s radio
>=20
> The sa2400 RF code needs to invoke sa2400_write_phy_antenna every tim=
e the
> channel is being switch.
>=20
> This should be done passing the channel number to that function.
> Incorrectly we were passing the same value that is written on the
> channel RF register.
> This may cause problems when operating on ch 14.
>=20
> This patch fixes it.
>=20
> Thanks to Alessandro Di Marco who found this issue!
>=20
>=20
> signed-off-by: Andrea Merello <andreamrl@tiscali.it>
> ---
>=20
> --- a/drivers/net/wireless/rtl8180_sa2400.c     2008-02-02
> 14:48:52.000000000 +0100
> +++ b/drivers/net/wireless/rtl8180_sa2400.c     2008-02-02
> 14:49:44.000000000 +0100
> @@ -85,7 +85,7 @@ static void sa2400_rf_set_channel(struct
>=20
>         write_sa2400(dev, 7, txpw);
>=20
> -       sa2400_write_phy_antenna(dev, chan);
> +       sa2400_write_phy_antenna(dev, conf->channel);
>=20
>         write_sa2400(dev, 0, chan);
>         write_sa2400(dev, 1, 0xbb50);

  CC [M]  drivers/net/wireless/rtl8180_sa2400.o
drivers/net/wireless/rtl8180_sa2400.c: In function =E2=80=98sa2400_rf_s=
et_channel=E2=80=99:
drivers/net/wireless/rtl8180_sa2400.c:89: warning: passing argument 2 o=
f =E2=80=98sa2400_write_phy_antenna=E2=80=99 makes integer from pointer=
 without a cast

Also, the patch is whitespace-damaged and it should be "Signed-off-by"
(note the capital letter) if you don't mind. :-)

Thanks,

John
--=20
John W. Linville
linville@tuxdriver.com
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2008-05-14 20:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-10 11:30 PATCH Rtl8180 ch14 [1/3] Andrea Merello
2008-05-14 20:07 ` John W. Linville [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=20080514200729.GA15712@tuxdriver.com \
    --to=linville@tuxdriver.com \
    --cc=andreamrl@tiscali.it \
    --cc=dmr@c0nc3pt.com \
    --cc=linux-wireless@vger.kernel.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 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).