From 73b28a10cbe84435e915bc73a410bd7fe079a976 Mon Sep 17 00:00:00 2001 From: Arman Uguray Date: Fri, 1 May 2015 12:42:49 -0700 Subject: [PATCH] profiles/hog: Fix Invalid Handle error This patch fixes an Invalid Handle error that gets returned while discovering the "External Report Reference" descriptors, where an invalid handle range of "0x00 - 0xff" was being used. 0x0000 is an invalid handle in ATT so this patch fixes changes the range to "0x0001 - 0xffff". --- profiles/input/hog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/input/hog.c b/profiles/input/hog.c index bb3f18208..4be9fd212 100644 --- a/profiles/input/hog.c +++ b/profiles/input/hog.c @@ -319,7 +319,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(hogdev->attrib, 0x00, 0xff, &uuid, + gatt_discover_char(hogdev->attrib, 0x0001, 0xffff, &uuid, external_service_char_cb, hogdev); } -- 2.47.3