Skip to contentSkip to conversation

b43: LP-PHY: Fix a spec error in the B2062 channel switch routine

PATCH In review Gábor Stefanik 2 participants 2 messages Aug 16, 2009 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 b43: LP-PHY: Fix a spec error in the B2062 channel switch routine

The channel switch routine had a whole instruction missing. Add it.

---
drivers/net/wireless/b43/phy_lp.c | 4 ++++

1 files changed, 4 insertions(+), 0 deletions(-)
drivers/net/wireless/b43/phy_lp.c +0 -0
index a51da6e..3889519 100644
@@ -1939,6 +1939,10 @@ static int lpphy_b2062_tune(struct b43_wldev *dev,
	tmp5 = tmp7 * 0x100;
	tmp6 = tmp5 / tmp4;
	tmp7 = tmp5 % tmp4;
+	b43_radio_write(dev, B2062_S_RFPLL_CTL27, tmp6);
+	tmp5 = tmp7 * 0x100;
+	tmp6 = tmp5 / tmp4;
+	tmp7 = tmp5 % tmp4;
	b43_radio_write(dev, B2062_S_RFPLL_CTL28, tmp6);
	tmp5 = tmp7 * 0x100;
	tmp6 = tmp5 / tmp4;
Signature · 1 line
1.6.2.4
#1 lore raw
Quoted 3 lines · On Sunday 16 August 2009 15:32:40 Gábor Stefanik wrote:

The channel switch routine had a whole instruction missing. Add it.

ack

Quoted 19 lines
---
 drivers/net/wireless/b43/phy_lp.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/net/wireless/b43/phy_lp.c +4 -0
index a51da6e..3889519 100644
@@ -1939,6 +1939,10 @@ static int lpphy_b2062_tune(struct b43_wldev *dev,
 	tmp5 = tmp7 * 0x100;
 	tmp6 = tmp5 / tmp4;
 	tmp7 = tmp5 % tmp4;
+	b43_radio_write(dev, B2062_S_RFPLL_CTL27, tmp6);
+	tmp5 = tmp7 * 0x100;
+	tmp6 = tmp5 / tmp4;
+	tmp7 = tmp5 % tmp4;
 	b43_radio_write(dev, B2062_S_RFPLL_CTL28, tmp6);
 	tmp5 = tmp7 * 0x100;
 	tmp6 = tmp5 / tmp4;
Signature · 1 line
Greetings, Michael.