sixaxis: Fix fliping device.trusted automatically
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 2 Aug 2022 00:05:36 +0000 (17:05 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
commit2b751b48c18ed909d36fa23f96e3e498b9130214
treeaea24bd077045bc2e281396be5afb6fe0532512d
parent76bab1a0e8a1d148e30f8b9a04bfb50c2335a95f
sixaxis: Fix fliping device.trusted automatically

device.trusted is a user preference which controls if the devices needs
to be authorized or not so the plugin shall not overwrite it and instead
just honor what user has set and skip authorizing if already trusted.

Fixes: https://github.com/bluez/bluez/issues/372
Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
plugins/sixaxis.c
src/device.c
src/device.h