summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2019-06-07 08:54:10 +0200
committerSzymon Janc <szymon.janc@codecoup.pl>2019-06-13 11:24:55 +0200
commit59b934ab8deac7b76b7b397b6424f1806b42b753 (patch)
tree78b23e4405eea85c7e990f65ad6f26df49134d3b /plugins
parent510224f47cc9b487ebf3a5678bcfc7111c7f462e (diff)
downloadbluez-59b934ab8deac7b76b7b397b6424f1806b42b753.tar.gz
sixaxis: Fix another problem with already setup devices
If the device went through any kind of pairing once, it might have been set as trusted. Make sure to set the device as untrusted before starting the cable pairing authorization so that we don't exit early from process_auth_queue() (which considers trusted devices to be paired).
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sixaxis.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/sixaxis.c b/plugins/sixaxis.c
index fed68d2d8..12638829b 100644
--- a/plugins/sixaxis.c
+++ b/plugins/sixaxis.c
@@ -365,6 +365,7 @@ static bool setup_device(int fd, const char *sysfs_path,
btd_device_device_set_name(device, cp->name);
btd_device_set_pnpid(device, cp->source, cp->vid, cp->pid, cp->version);
+ btd_device_set_trusted(device, false);
btd_device_set_temporary(device, true);
closure = g_new0(struct authentication_closure, 1);