From patchwork Sun Aug 16 16:40:09 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?G=C3=A1bor_Stefanik?= X-Patchwork-Id: 41794 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n7GGeGnY021651 for ; Sun, 16 Aug 2009 16:40:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751016AbZHPQkM (ORCPT ); Sun, 16 Aug 2009 12:40:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751219AbZHPQkM (ORCPT ); Sun, 16 Aug 2009 12:40:12 -0400 Received: from mail-fx0-f215.google.com ([209.85.220.215]:64541 "EHLO mail-fx0-f215.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750959AbZHPQkK (ORCPT ); Sun, 16 Aug 2009 12:40:10 -0400 Received: by fxm11 with SMTP id 11so1916389fxm.39 for ; Sun, 16 Aug 2009 09:40:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:content-type :content-transfer-encoding; bh=392RIRUhA7XO90Chap67Neytf+JxoteCiHWDOVG0u6k=; b=ZtCMFs6dsVpSI/zNLFRcUr2aAHLg+yMd5MdijpYLqjnfTsxVNQMXr2I0QQD0Vyu0X9 AgCt1YbK6m4l8jt2WHG79Qphn7AF5tcP8NqzbOQ4OdsC5G3XuIABpx80KL8W9ezNvhz0 T87gFLGXhFU6i0PqIlX63kgyEPl6D4pOeyY60= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; b=XjpeaBmVw0YbuoWKR4JAS/OKsWSv+5xy/L/WFkRHuD705OC6bG80g1X5bjPqCWqKAz lORoqZD5SgoObBRR1PDEsw/2y+CsPslwAXfljTeW569ZYZ+uTfJaZOeFSDVhADBSptty frzu2O1Q+Yy+AAguxlu4yEHXnOY+xm+Fb9PQI= Received: by 10.103.168.12 with SMTP id v12mr19138muo.1.1250440811147; Sun, 16 Aug 2009 09:40:11 -0700 (PDT) Received: from ?192.168.1.3? (pool-053ee.externet.hu [92.52.200.237]) by mx.google.com with ESMTPS id b9sm15385382mug.9.2009.08.16.09.40.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 16 Aug 2009 09:40:10 -0700 (PDT) Message-ID: <4A883669.6010504@gmail.com> Date: Sun, 16 Aug 2009 18:40:09 +0200 From: =?UTF-8?B?R8OhYm9yIFN0ZWZhbmlr?= User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: John Linville , Michael Buesch , Larry Finger CC: Mark Huijgen , Broadcom Wireless , linux-wireless Subject: [PATCH] b43: LP-PHY: Fix a bug in the B2062 channel tune path Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org I missed the "+16" part of the instruction in the specs. Signed-off-by: Gábor Stefanik --- drivers/net/wireless/b43/phy_lp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/wireless/b43/phy_lp.c b/drivers/net/wireless/b43/phy_lp.c index 1de4a74..5a7b873 100644 --- a/drivers/net/wireless/b43/phy_lp.c +++ b/drivers/net/wireless/b43/phy_lp.c @@ -1952,7 +1952,7 @@ static int lpphy_b2062_tune(struct b43_wldev *dev, b43_radio_write(dev, B2062_S_RFPLL_CTL29, tmp6 + ((2 * tmp7) / tmp4)); tmp8 = b43_phy_read(dev, B2062_S_RFPLL_CTL19); tmp9 = ((2 * tmp3 * (tmp8 + 1)) + (3 * tmp1)) / (6 * tmp1); - b43_radio_write(dev, B2062_S_RFPLL_CTL23, tmp9 >> 8); + b43_radio_write(dev, B2062_S_RFPLL_CTL23, (tmp9 >> 8) + 16); b43_radio_write(dev, B2062_S_RFPLL_CTL24, tmp9 & 0xFF); lpphy_b2062_vco_calib(dev);