All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mario Limonciello <mario_limonciello@dell.com>
To: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: [PATCH 2/3] Add support for switching from HCI->HID mode for Dell BT adapters.
Date: Fri, 15 May 2009 14:40:43 -0500	[thread overview]
Message-ID: <4A0DC53B.4050304@dell.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 327 bytes --]

This allows Dell BT adapters to be able to be switched back to HID mode
(if users desire to do so).

---
 tools/hid2hci.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

Attaching patch to prevent Exchange mangling.
-- 
Mario Limonciello
*Dell | Linux Engineering*
mario_limonciello@dell.com

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-Add-support-for-switching-from-HCI-HID-mode-for-Del.patch --]
[-- Type: text/x-patch; name="0001-Add-support-for-switching-from-HCI-HID-mode-for-Del.patch", Size: 907 bytes --]

From 216dca63772bc976d8f58b31aa596e53e2bf36a0 Mon Sep 17 00:00:00 2001
From: Mario Limonciello <Mario_Limonciello@Dell.com>
Date: Fri, 15 May 2009 14:34:15 -0500
Subject: [PATCH] Add support for switching from HCI->HID mode for Dell BT adapters.

---
 tools/hid2hci.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/tools/hid2hci.c b/tools/hid2hci.c
index dace0ea..f57a333 100644
--- a/tools/hid2hci.c
+++ b/tools/hid2hci.c
@@ -208,7 +208,16 @@ static int switch_logitech(struct device_info *devinfo)
 
 static int switch_dell(struct device_info *devinfo)
 {
-	char report[] = { 0x7f, 0x13, 0x00, 0x00 };
+	char mode;
+	switch(devinfo->mode) {
+		case HCI:
+			mode = 0x13;
+			break;
+		case HID:
+			mode = 0x14;
+			break;
+	}
+	char report[] = { 0x7f, mode, 0x00, 0x00 };
 
 	struct usb_dev_handle *handle;
 	int err;
-- 
1.6.0.4



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

             reply	other threads:[~2009-05-15 19:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-15 19:40 Mario Limonciello [this message]
2009-05-15 20:06 ` [PATCH 2/3] Add support for switching from HCI->HID mode for Dell BT adapters Marcel Holtmann
2009-05-15 22:07   ` Mario Limonciello
2009-05-16 13:36     ` 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=4A0DC53B.4050304@dell.com \
    --to=mario_limonciello@dell.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.