From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> --- profiles/input/hog-lib.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/profiles/input/hog-lib.c b/profiles/input/hog-lib.c index 0f2f394..a159b17 100644 --- a/profiles/input/hog-lib.c +++ b/profiles/input/hog-lib.c @@ -1425,6 +1425,11 @@ struct bt_hog *bt_hog_new(int fd, const char *name, uint16_t vendor, hog_free(hog); return NULL; } + + /* Try creating a DIS instance in case pid/vid are not set */ + if (!vendor && !product) { + hog->dis = bt_dis_new(db); + } } return bt_hog_ref(hog); -- 2.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