Date: Thu, 2 Nov 2017 21:17:05 +0000 (UTC) From: Vladimir Kondratyev <wulf@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r325344 - stable/11/usr.sbin/bluetooth/bthidd Message-ID: <201711022117.vA2LH52j055654@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: wulf Date: Thu Nov 2 21:17:05 2017 New Revision: 325344 URL: https://svnweb.freebsd.org/changeset/base/325344 Log: MFC: r324770 bthidd: Fix leds on multireport keyboards broken after r297217 Reviewed by: emax, gonzo Approved by: gonzo (mentor) Differential Revision: https://reviews.freebsd.org/D12214 Modified: stable/11/usr.sbin/bluetooth/bthidd/kbd.c Directory Properties: stable/11/ (props changed) Modified: stable/11/usr.sbin/bluetooth/bthidd/kbd.c ============================================================================== --- stable/11/usr.sbin/bluetooth/bthidd/kbd.c Thu Nov 2 21:13:24 2017 (r325343) +++ stable/11/usr.sbin/bluetooth/bthidd/kbd.c Thu Nov 2 21:17:05 2017 (r325344) @@ -569,6 +569,11 @@ kbd_status_changed(bthid_session_p s, uint8_t *data, i } 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711022117.vA2LH52j055654>