public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Nick Pelly <npelly@google.com>
To: linux-bluetooth@vger.kernel.org
Cc: Nick Pelly <npelly@google.com>
Subject: [PATCH] Add TI wl1271 to texas instruments chip list
Date: Thu, 11 Jun 2009 11:30:32 -0700	[thread overview]
Message-ID: <1244745032-18997-1-git-send-email-npelly@google.com> (raw)

Signed-off-by: Nick Pelly <npelly@google.com>
---
 tools/hciattach_tialt.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/tools/hciattach_tialt.c b/tools/hciattach_tialt.c
index 1abf2f8..72633ad 100644
--- a/tools/hciattach_tialt.c
+++ b/tools/hciattach_tialt.c
@@ -239,12 +239,15 @@ int texasalt_init(int fd, int speed, struct termios *ti)
 	{
 		unsigned short lmp_subv = resp[13] | (resp[14] << 8);
 		unsigned short brf_chip = (lmp_subv & 0x7c00) >> 10;
-		static const char *c_brf_chip[5] = {
+		static const char *c_brf_chip[8] = {
 			"unknown",
 			"unknown",
 			"brf6100",
 			"brf6150",
-			"brf6300"
+			"brf6300",
+			"unknown",
+			"unknown",
+			"wl1271"
 		};
 		char fw[100];
 
@@ -256,7 +259,7 @@ int texasalt_init(int fd, int speed, struct termios *ti)
 				"\tchip: %s (%d)\n",
 				lmp_subv & 0x7f,
 				((lmp_subv & 0x8000) >> (15-3)) | ((lmp_subv & 0x380) >> 7),
-				((brf_chip > 4) ? "unknown" : c_brf_chip[brf_chip]),
+				((brf_chip > 7) ? "unknown" : c_brf_chip[brf_chip]),
 				brf_chip);
 
 		sprintf(fw, "/etc/firmware/%s.bin", c_brf_chip[brf_chip]);
-- 
1.6.3.1


             reply	other threads:[~2009-06-11 18:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-11 18:30 Nick Pelly [this message]
2009-06-11 18:39 ` [PATCH] Add TI wl1271 to texas instruments chip list Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1244745032-18997-1-git-send-email-npelly@google.com \
    --to=npelly@google.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox