b43: Fix LO calibration txctl reg value
authorRoel Kluin <roel.kluin@gmail.com>
Sun, 15 Feb 2009 17:02:39 +0000 (18:02 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Feb 2009 19:52:43 +0000 (14:52 -0500)
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>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/lo.c

index 6a18a147046519c640f5f622424cfd42d034ea76..88ed75f68646f665e2ec5c5f04eb0a960c15fac2 100644 (file)
@@ -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;