[PATCH 2/3] Add support for switching from HCI->HID mode for Dell BT adapters.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx
From 216dca63772bc976d8f58b31aa596e53e2bf36a0 Mon Sep 17 00:00:00 2001
From: Mario Limonciello <Mario_Limonciello@xxxxxxxx>
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: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux