hog: Fix read order of attributes
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 11 Jan 2022 01:35:15 +0000 (17:35 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:53 +0000 (14:55 +0530)
commit261a0c4d69fcb3a1d42d48824a5f7795478f167c
tree84190f586dff61922a9e03016aa0f8b98fd3554e
parenteb493d163510bfc72cc30a40217bca7edf7ca075
hog: Fix read order of attributes

The Report Map must be read after all other attributes otherwise the
Kernel driver may start using UHID_SET_REPORT which requires the
report->id to be known in order to resolve the attribute to send to.

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