Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7265c5d1 authored by Stefano Brivio's avatar Stefano Brivio Committed by John W. Linville
Browse files

[PATCH] bcm43xx: fix radio_set_tx_iq



Fix a duplicated leftshift in bcm43xx_radio_set_tx_iq. data_high values are
already leftshifted. Thanks to Michael Buesch for spotting this.

Signed-off-by: default avatarStefano Brivio <stefano.brivio@polimi.it>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent be10d386
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1579,7 +1579,7 @@ void bcm43xx_radio_set_tx_iq(struct bcm43xx_private *bcm)
	
	for (i = 0; i < 5; i++) {
		for (j = 0; j < 5; j++) {
			if (tmp == (data_high[i] << 4 | data_low[j])) {
			if (tmp == (data_high[i] | data_low[j])) {
				bcm43xx_phy_write(bcm, 0x0069, (i - j) << 8 | 0x00C0);
				return;
			}