From patchwork Tue Aug 4 22:25:42 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: 39245 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 n74MPl90003435 for ; Tue, 4 Aug 2009 22:25:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755230AbZHDWZo (ORCPT ); Tue, 4 Aug 2009 18:25:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755237AbZHDWZo (ORCPT ); Tue, 4 Aug 2009 18:25:44 -0400 Received: from mail-fx0-f217.google.com ([209.85.220.217]:34857 "EHLO mail-fx0-f217.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755096AbZHDWZn (ORCPT ); Tue, 4 Aug 2009 18:25:43 -0400 Received: by fxm17 with SMTP id 17so3563962fxm.37 for ; Tue, 04 Aug 2009 15:25:43 -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=WnVHSN1arlLQIgP4Qbx4erBo7Dlwwoqu+UwAIeFOO9E=; b=J6jyBsaXB6qHm1g1jFYuajThASDoIi2ii5marPoSoqLarRFWKlFUjan547fP4AfxsS KOwF3+e7/yXOp8ob+VwCGf/k/ZoLhd4yHs0R54JGH63FdO62TTn6rM3dHMoYBZsTn1X4 2TXy3MkEK5A8ObVNy2oTMEi3VLUQZZCzGRMzc= 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=udPrOcunQ+5iM3jlyYWehnV2URB8EVli0YVgmdkumOScf7Q+kSy5UZSQJRxp48odBw 1PFZrqH6LIEE6t23t+p87gxIxIaUuhFHJQ3bXewnncvm+72pUEsHcNjzCUS41QxR6W+K OfGvoB0rTxa5YuVO501zL3HBvS/lhNLFc3UFw= Received: by 10.103.239.2 with SMTP id q2mr274554mur.47.1249424743367; Tue, 04 Aug 2009 15:25:43 -0700 (PDT) Received: from ?192.168.1.3? (pool-01fd9.externet.hu [88.209.201.216]) by mx.google.com with ESMTPS id n10sm7847612mue.19.2009.08.04.15.25.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 04 Aug 2009 15:25:42 -0700 (PDT) Message-ID: <4A78B566.6030408@gmail.com> Date: Wed, 05 Aug 2009 00:25:42 +0200 From: =?UTF-8?B?R8OhYm9yIFN0ZWZhbmlr?= User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: John Linville , Michael Buesch CC: Larry Finger , Broadcom Wireless , linux-wireless Subject: [PATCH v2] b43: Typo fixes & minor cleanup Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Make use of HostFlags defines in the LP-PHY code. Fix fallout from the IEEE80211_IF_TYPE to NL80211_IFTYPE change. Signed-off-by: Gábor Stefanik --- v2: Drop incorrect hunk. drivers/net/wireless/b43/b43.h | 2 +- drivers/net/wireless/b43/phy_lp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/b43/b43.h b/drivers/net/wireless/b43/b43.h index 41ca727..52fd6d6 100644 --- a/drivers/net/wireless/b43/b43.h +++ b/drivers/net/wireless/b43/b43.h @@ -627,7 +627,7 @@ struct b43_wl { u8 mac_addr[ETH_ALEN]; /* Current BSSID */ u8 bssid[ETH_ALEN]; - /* Interface type. (IEEE80211_IF_TYPE_XXX) */ + /* Interface type. (NL80211_IFTYPE_XXX) */ int if_type; /* Is the card operating in AP, STA or IBSS mode? */ bool operating; diff --git a/drivers/net/wireless/b43/phy_lp.c b/drivers/net/wireless/b43/phy_lp.c index 5d50943..03a9b50 100644 --- a/drivers/net/wireless/b43/phy_lp.c +++ b/drivers/net/wireless/b43/phy_lp.c @@ -130,7 +130,7 @@ static void lpphy_baseband_rev0_1_init(struct b43_wldev *dev) b43_phy_set(dev, B43_LPPHY_CRSGAIN_CTL, 0x0006); b43_phy_write(dev, B43_LPPHY_GPIO_SELECT, 0x0005); b43_phy_write(dev, B43_LPPHY_GPIO_OUTEN, 0xFFFF); - b43_hf_write(dev, b43_hf_read(dev) | 0x0800ULL << 32); + b43_hf_write(dev, b43_hf_read(dev) | B43_HF_PR45960W); } if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) { b43_phy_set(dev, B43_LPPHY_LP_PHY_CTL, 0x8000);