Skip to contentSkip to conversation

android/hog: Fix using invalid range for external report

PATCH Applied Luiz Augusto von Dentz 2 participants 2 messages Jun 25, 2014 – Jun 26, 2014 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 android/hog: Fix using invalid range for external report

From: Luiz Augusto von Dentz <[email protected]>

---
 android/hog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
android/hog.c +1 -1
index 652c374..4f1a4a8 100644
@@ -303,7 +303,7 @@ static void external_report_reference_cb(guint8 status, const guint8 *pdu,
 	DBG("External report reference read, external report characteristic "
 						"UUID: 0x%04x", uuid16);
 	bt_uuid16_create(&uuid, uuid16);
-	gatt_discover_char(hog->attrib, 0x00, 0xff, &uuid,
+	gatt_discover_char(hog->attrib, 0x0001, 0xffff, &uuid,
 					external_service_char_cb, hog);
 }
 
Signature · 1 line
1.9.3
Applied
#1 lore raw

Hi Luiz,

Quoted 11 lines · On Wednesday 25 of June 2014 14:49:07 Luiz Augusto von Dentz wrote:

From: Luiz Augusto von Dentz <[email protected]>

---
 android/hog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
android/hog.c +0 -0
index 652c374..4f1a4a8 100644

android/hog.c static void external_report_reference_cb(guint8 status, const guint8 *pdu, · line 309

Quoted 8 lines
android/hog.c +1 -1
@@ -303,7 +303,7 @@ static void external_report_reference_cb(guint8 status, const guint8 *pdu,
 	DBG("External report reference read, external report characteristic "
 						"UUID: 0x%04x", uuid16);
 	bt_uuid16_create(&uuid, uuid16);
-	gatt_discover_char(hog->attrib, 0x00, 0xff, &uuid,
+	gatt_discover_char(hog->attrib, 0x0001, 0xffff, &uuid,
 					external_service_char_cb, hog);
 }
 

Applied, thanks.

Signature · 2 lines
Best regards, 
Szymon Janc