summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2008-09-13 20:13:30 -0700
committerDavid Woodhouse <David.Woodhouse@intel.com>2008-09-13 20:13:30 -0700
commit6d7e8a0ee472260f615131154407561fbb615ec4 (patch)
tree98af36371dd1e58dc1fdf156b3129a7e707115c0 /input
parente2a5786af8c8278eeeb0bedccda32c7422e9a2b7 (diff)
fix fake hid detection by looking up pnp info
Diffstat (limited to 'input')
-rw-r--r--input/device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/input/device.c b/input/device.c
index ee6f936a..5caa58e5 100644
--- a/input/device.c
+++ b/input/device.c
@@ -628,6 +628,9 @@ static int hidp_add_connection(const struct input_device *idev,
extract_hid_record(rec, req);
sdp_record_free(rec);
+ read_pnp(src_addr, dst_addr, &req->vendor, &req->product,
+ &req->version);
+
fake_hid = get_fake_hid(req->vendor, req->product);
if (fake_hid) {
fake = g_new0(struct fake_input, 1);