Skip to contentSkip to conversation

b43: Fix LO calibration txctl reg value

PATCH New Michael Buesch 1 participant 1 message Feb 15, 2009 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 b43: Fix LO calibration txctl reg value

From: Roel Kluin <[email protected]>

This patch expands the parenthesis in the txctl reg write of the LO calibration to enforce precedence rules.

---

John, please apply this bugfix.

drivers/net/wireless/b43/lo.c +1 -1
index 6a18a14..88ed75f 100644
@@ -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;
Signature · 1 line
Greetings, Michael.