linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] bcm43xx-mac80211: Fix specs typo for baseband attenuation
@ 2007-07-26 16:33 Larry Finger
  2007-07-26 17:21 ` John W. Linville
  2007-07-26 17:31 ` Michael Buesch
  0 siblings, 2 replies; 14+ messages in thread
From: Larry Finger @ 2007-07-26 16:33 UTC (permalink / raw)
  To: John Linville, Michael Buesch; +Cc: Bcm43xx-dev, linux-wireless

A typo in the specs interchanges the branches in an if statement, which
breaks operations for a BCM4306/rev 2 that has phy->analog == 1.

Signed-off-by: Larry Finger<Larry.Finger@lwfinger.net>
---

John and Michael,

This patch is made for the wireless-dev tree after the bcm43xx-mac80211
directory has been moved into drivers/net/wireless, but it needs to be
applied to the wireless-mb tree as well.

Larry

Index: wireless-dev/drivers/net/wireless/bcm43xx-mac80211/bcm43xx_phy.c
===================================================================
--- wireless-dev/net/wireless/bcm43xx-mac80211/bcm43xx_phy.c
+++ wireless-dev/drivers/net/wireless/bcm43xx-mac80211/bcm43xx_phy.c
@@ -1895,7 +1895,7 @@ void bcm43xx_phy_set_baseband_attenuatio
 		bcm43xx_write16(dev, BCM43xx_MMIO_PHY0,
 				(bcm43xx_read16(dev, BCM43xx_MMIO_PHY0)
 				 & 0xFFF0) | baseband_attenuation);
-	} else if (phy->analog == 1) {
+	} else if (phy->analog != 1) {
 		bcm43xx_phy_write(dev, BCM43xx_PHY_DACCTL,
 				  (bcm43xx_phy_read(dev, BCM43xx_PHY_DACCTL)
 				   & 0xFFC3) | (baseband_attenuation << 2));

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

end of thread, other threads:[~2007-07-29 12:38 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-26 16:33 [PATCH] bcm43xx-mac80211: Fix specs typo for baseband attenuation Larry Finger
2007-07-26 17:21 ` John W. Linville
2007-07-26 17:56   ` Larry Finger
2007-07-26 18:13     ` John W. Linville
2007-07-26 18:49       ` Larry Finger
2007-07-26 19:26         ` John W. Linville
2007-07-26 19:38           ` Michael Buesch
2007-07-27  9:18         ` David Woodhouse
2007-07-27  9:20           ` Michael Buesch
2007-07-29 11:59           ` Paul TBBle Hampson
2007-07-29 12:38             ` Michael Buesch
2007-07-26 17:31 ` Michael Buesch
2007-07-26 18:03   ` Larry Finger
2007-07-26 18:11     ` Michael Buesch

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