profiles/hog: enable report notifications if ccc handle is valid This fixes an issue where hog report notifications weren't getting processed after a device disconnected then reconnected a short while later without being removed. diff --git a/profiles/input/hog.c b/profiles/input/hog.c index 4be9fd2..a61d0e7 100644 --- a/profiles/input/hog.c +++ b/profiles/input/hog.c @@ -858,7 +858,7 @@ static void attio_connected_cb(GAttrib *attrib, gpointer user_data) for (l = hogdev->reports; l; l = l->next) { struct report *r = l->data; - enable_report_notifications(r, false); + enable_report_notifications(r, r->ccc_handle != 0); } } -- 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