Diff between b3163f1161b957ac00ed64c034e7703b5239e350 and 2b3210a9bf480e0a121839b894c3251138777157

Changed Files

File Additions Deletions Status
android/hog.c +5 -0 modified

Full Patch

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);