From: Luiz Augusto von Dentz <redacted>
The parameters of bt_uhid_get_report_reply are number followed by
status, not status followed by number, so the order needs to be
swapped.
Fixes: https://github.com/bluez/bluez/issues/880
---
profiles/input/hog-lib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/profiles/input/hog-lib.c b/profiles/input/hog-lib.c
index 67a0e832dc98..1b4aca07486b 100644
--- a/profiles/input/hog-lib.c
+++ b/profiles/input/hog-lib.c
@@ -904,7 +904,7 @@ static void report_reply(struct bt_hog *hog, uint8_t status, uint8_t id,
hog->getrep_att = 0;
- err = bt_uhid_get_report_reply(hog->uhid, hog->getrep_id, status, id,
+ err = bt_uhid_get_report_reply(hog->uhid, hog->getrep_id, id, status,
data, len);
if (err < 0)
error("bt_uhid_get_report_reply: %s", strerror(-err));--
2.45.2