diff options
author | Vladimir Kondratyev <wulf@FreeBSD.org> | 2017-10-19 20:42:46 +0000 |
---|---|---|
committer | Vladimir Kondratyev <wulf@FreeBSD.org> | 2017-10-19 20:42:46 +0000 |
commit | 12df521311790f2165bd6c12a10b4f1021561891 (patch) | |
tree | 917fe60bd82fc6ed28b73678fa1e1ecaf37f8d53 /usr.sbin | |
parent | 87165bf858efc96b1ce868993be06ea61a1944e1 (diff) | |
download | src-test2-12df521311790f2165bd6c12a10b4f1021561891.tar.gz src-test2-12df521311790f2165bd6c12a10b4f1021561891.zip |
Notes
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bluetooth/bthidd/kbd.c | 5 |
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); |