* [PATCH] b43: Fix LO calibration txctl reg value
@ 2009-02-15 17:02 Michael Buesch
0 siblings, 0 replies; only message in thread
From: Michael Buesch @ 2009-02-15 17:02 UTC (permalink / raw)
To: linville; +Cc: bcm43xx-dev, linux-wireless, Andrew Morton, Roel Kluin
From: Roel Kluin <roel.kluin@gmail.com>
This patch expands the parenthesis in the txctl reg write
of the LO calibration to enforce precedence rules.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Michael Buesch <mb@bu3sch.de>
---
John, please apply this bugfix.
diff --git a/drivers/net/wireless/b43/lo.c b/drivers/net/wireless/b43/lo.c
index 6a18a14..88ed75f 100644
--- a/drivers/net/wireless/b43/lo.c
+++ b/drivers/net/wireless/b43/lo.c
@@ -783,7 +783,7 @@ struct b43_lo_calib * b43_calibrate_lo_setting(struct b43_wldev *dev,
| rfatt->att);
b43_radio_write16(dev, txctl_reg,
(b43_radio_read16(dev, txctl_reg) & ~txctl_value)
- | (rfatt->with_padmix) ? txctl_value : 0);
+ | (rfatt->with_padmix ? txctl_value : 0));
max_rx_gain = rfatt->att * 2;
max_rx_gain += bbatt->att / 2;
--
Greetings, Michael.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-02-15 17:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-15 17:02 [PATCH] b43: Fix LO calibration txctl reg value 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).