linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PATCH Rtl8180 ch14 [1/3]
@ 2008-05-10 11:30 Andrea Merello
  2008-05-14 20:07 ` [PATCH] Rtl8180 sa2400 ch14 John W. Linville
  0 siblings, 1 reply; 2+ messages in thread
From: Andrea Merello @ 2008-05-10 11:30 UTC (permalink / raw)
  To: John W. Linville; +Cc: linux-wireless, Alessandro Di Marco

Rtl8180: fix wrong parameter in RF code funcion invokation for philips radio

The sa2400 RF code needs to invoke sa2400_write_phy_antenna every time the
channel is being switch.

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.

This patch fixes it.

Thanks to Alessandro Di Marco who found this issue!


signed-off-by: Andrea Merello <andreamrl@tiscali.it>
---

--- 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

        write_sa2400(dev, 7, txpw);

-       sa2400_write_phy_antenna(dev, chan);
+       sa2400_write_phy_antenna(dev, conf->channel);

        write_sa2400(dev, 0, chan);
        write_sa2400(dev, 1, 0xbb50);

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-14 20:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-10 11:30 PATCH Rtl8180 ch14 [1/3] Andrea Merello
2008-05-14 20:07 ` [PATCH] Rtl8180 sa2400 ch14 John W. Linville

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).