From patchwork Fri Aug 14 12:23:54 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: 41429 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 n7ECOBhx010694 for ; Fri, 14 Aug 2009 12:24:11 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756650AbZHNMXy (ORCPT ); Fri, 14 Aug 2009 08:23:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756648AbZHNMXy (ORCPT ); Fri, 14 Aug 2009 08:23:54 -0400 Received: from mail-fx0-f215.google.com ([209.85.220.215]:46028 "EHLO mail-fx0-f215.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756603AbZHNMXy (ORCPT ); Fri, 14 Aug 2009 08:23:54 -0400 Received: by fxm11 with SMTP id 11so1131817fxm.39 for ; Fri, 14 Aug 2009 05:23:54 -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=qtoyoA4f3RrF8Op/udQhFTNUJwBZxQBRm2UiJ2qUvqQ=; b=miObV9DM+UmSKq7JUP5YWqGnFeGHPf8VcFVMnmBE5ZRVyUpJYJynw2yha9vIoW2mxj iKAI6NZALqdOxR1nxmLQKh23N0neTHaEGUrR0UR1ID8eeN9yEPwUh/L5QZJUlE7xaVtw MQ/46xwZCUbsu49eePeaLBEVa4A+9jPaWb0M4= 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=EyNf+bXv+j4adYOAN/WqSO2ye+/45rzkmhZ3f1elOE7d2MK6rs1vjOLJvW0qdm0HqH crtSnnspqnGEZws+tkCsLw0jZxCUtOSO6k8K4gc67YV+1g9DdA5ccY3yNtJys7WjuL6L TsePFJpCBmmTF14DVMPin7iCBg2dtlMSJ6hEk= Received: by 10.103.134.10 with SMTP id l10mr612669mun.52.1250252634159; Fri, 14 Aug 2009 05:23:54 -0700 (PDT) Received: from ?192.168.1.5? (pool-02f2c.externet.hu [88.209.217.43]) by mx.google.com with ESMTPS id g1sm6478034muf.16.2009.08.14.05.23.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 14 Aug 2009 05:23:53 -0700 (PDT) Message-ID: <4A85575A.2050303@gmail.com> Date: Fri, 14 Aug 2009 14:23:54 +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 , Mark Huijgen CC: Broadcom Wireless , linux-wireless Subject: [PATCH v3] b43: Add LP-PHY firmware loading support Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Add support for loading LP-PHY firmware to b43_try_request_fw. Signed-off-by: Gábor Stefanik --- V3: Add yet another missing "break". V2: Add a missing "break". drivers/net/wireless/b43/main.c | 25 ++++++++++++++++++++++++- 1 files changed, 24 insertions(+), 1 deletions(-) diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index fbcbe4f..51767fa 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c @@ -2062,8 +2062,12 @@ static int b43_try_request_fw(struct b43_request_fw_context *ctx) filename = "ucode5"; else if ((rev >= 11) && (rev <= 12)) filename = "ucode11"; - else if (rev >= 13) + else if (rev == 13) filename = "ucode13"; + else if (rev == 14) + filename = "ucode14"; + else if (rev >= 15) + filename = "ucode15"; else goto err_no_ucode; err = b43_do_request_fw(ctx, filename, &fw->ucode); @@ -2111,6 +2115,16 @@ static int b43_try_request_fw(struct b43_request_fw_context *ctx) else goto err_no_initvals; break; + case B43_PHYTYPE_LP: + if (rev == 13) + filename = "lp0initvals13"; + else if (rev == 14) + filename = "lp0initvals14"; + else if (rev >= 15) + filename = "lp0initvals15"; + else + goto err_no_initvals; + break; default: goto err_no_initvals; } @@ -2145,6 +2159,15 @@ static int b43_try_request_fw(struct b43_request_fw_context *ctx) else goto err_no_initvals; break; + case B43_PHYTYPE_LP: + if (rev == 13) + filename = "lp0bsinitvals13"; + else if (rev == 14) + filename = "lp0bsinitvals14"; + else if (rev >= 15) + filename = "lp0bsinitvals15"; + else + goto err_no_initvals; default: goto err_no_initvals; }