Disable auto-connect on device remove
authorManish Mandlik <mmandlik@google.com>
Wed, 9 Sep 2020 19:40:01 +0000 (12:40 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:32 +0000 (19:08 +0530)
commit67dde9f358ce1310c31cde5d9ea46e6481458f33
tree8a5b621264177f5d9c43e9cefb0a8bb934a6eb87
parent78d91b8c0c9b2d1b097a9060a62d28969d27dc47
Disable auto-connect on device remove

Auto-connect is not disabled when a device is removed. So in case the
pairing is cancelled, the device is removed, but it stays in the kernel
auto-connect list. This causes future advertisement from that device to
trigger a pairing even if the user has already cancelled the pairing.

This patch disables auto-connect on device remove.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/device.c