[PATCH] profiles/hog: enable report notifications if ccc handle is valid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux