From fc8f951c077f63199933461652a64e7016355f41 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Wed, 8 Jan 2014 01:02:24 +0100 Subject: [PATCH] input: Fix check if device is sixaxis in auth_callback We need to accept connection if idev is not present but device is sixaxis. This fix not doing so for sixaxis devices. --- profiles/input/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/input/server.c b/profiles/input/server.c index f2e58363b..d85d6a91f 100644 --- a/profiles/input/server.c +++ b/profiles/input/server.c @@ -204,7 +204,7 @@ static void auth_callback(DBusError *derr, void *user_data) goto reject; } - if (!input_device_exists(&src, &dst) && dev_is_sixaxis(&src, &dst)) + if (!input_device_exists(&src, &dst) && !dev_is_sixaxis(&src, &dst)) return; if (!bt_io_accept(server->confirm, connect_event_cb, server, -- 2.47.3