hog-lib: Fix not waiting for UHID_START
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 25 Feb 2022 22:18:47 +0000 (14:18 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:53 +0000 (14:55 +0530)
commit54609d95db4b6fbc4909fbfbebc9acf5fcb62832
tree23976f62a512a12edd02e6d7de6aa840fe9d26c7
parenta0ab6eedeb0604eafb1cbb92b3d5d7a4cbe85e47
hog-lib: Fix not waiting for UHID_START

With use of UHID_CREATE2 the code needs to wait for UHID_START in order
to know if the reports are numbered or not.

Fixes: https://github.com/bluez/bluez/issues/298
Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
profiles/input/hog-lib.c