diff options
author | 2017-11-22 12:57:08 +0100 | |
---|---|---|
committer | 2017-11-22 16:01:06 +0100 | |
commit | af8dc4d0949092c4fba17ebb9e54448697c3d4e0 (patch) | |
tree | 84f033d92a75931415db4324418bc7d70dc694be /net/unix/af_unix.c | |
parent | HID: multitouch: Fix alphabetic sorting of mt_devices table. (diff) | |
download | wireguard-linux-af8dc4d0949092c4fba17ebb9e54448697c3d4e0.tar.xz wireguard-linux-af8dc4d0949092c4fba17ebb9e54448697c3d4e0.zip |
HID: multitouch: Properly deal with Win8 PTP reports with 0 touches
The Windows Precision Touchpad spec "Figure 4 Button Only Down and Up"
and "Table 9 Report Sequence for Button Only Down and Up" indicate
that the first packet of a (possibly hybrid mode multi-packet) frame
may contain a contact-count of 0 if only a button is pressed and no
fingers are detected.
This means that a value of 0 for contact-count is a valid value and
should be used as expected contact count when it is the first packet
(num_received == 0), as extra check to make sure that this is the first
packet of a buttons only frame, we also check that the timestamp is
different.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions