From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> Some devices, including PTS, may include characteristics other than Report as External Report. --- android/hog.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/android/hog.c b/android/hog.c index 83f5d53..7e61790 100644 --- a/android/hog.c +++ b/android/hog.c @@ -328,6 +328,11 @@ static void external_report_reference_cb(guint8 status, const guint8 *pdu, uuid16 = get_le16(&pdu[1]); DBG("External report reference read, external report characteristic " "UUID: 0x%04x", uuid16); + + /* Do not discover if is not a Report */ + if (uuid16 != HOG_REPORT_UUID) + return; + bt_uuid16_create(&uuid, uuid16); gatt_discover_char(hog->attrib, 0x0001, 0xffff, &uuid, external_service_char_cb, hog); -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html