aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bluetooth
diff options
context:
space:
mode:
authorVladimir Kondratyev <wulf@FreeBSD.org>2017-10-19 20:42:46 +0000
committerVladimir Kondratyev <wulf@FreeBSD.org>2017-10-19 20:42:46 +0000
commit12df521311790f2165bd6c12a10b4f1021561891 (patch)
tree917fe60bd82fc6ed28b73678fa1e1ecaf37f8d53 /usr.sbin/bluetooth
parent87165bf858efc96b1ce868993be06ea61a1944e1 (diff)
downloadsrc-12df521311790f2165bd6c12a10b4f1021561891.tar.gz
src-12df521311790f2165bd6c12a10b4f1021561891.zip
bthidd: Fix leds on multireport keyboards broken after r297217
Reviewed by: emax, gonzo Approved by: gonzo (mentor) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D12214
Notes
Notes: svn path=/head/; revision=324770
Diffstat (limited to 'usr.sbin/bluetooth')
-rw-r--r--usr.sbin/bluetooth/bthidd/kbd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.sbin/bluetooth/bthidd/kbd.c b/usr.sbin/bluetooth/bthidd/kbd.c
index a92a63a7c444..e946f0169fe7 100644
--- a/usr.sbin/bluetooth/bthidd/kbd.c
+++ b/usr.sbin/bluetooth/bthidd/kbd.c
@@ -569,6 +569,11 @@ kbd_status_changed(bthid_session_p s, uint8_t *data, int32_t len)
}
hid_end_parse(d);
+ if (report_id != NO_REPORT_ID) {
+ data[2] = data[1];
+ data[1] = report_id;
+ }
+
if (found)
write(s->intr, data, (report_id != NO_REPORT_ID) ? 3 : 2);