device: Disable auto connect for temporary devices
authorYu Liu <yudiliu@google.com>
Thu, 24 Sep 2020 23:17:42 +0000 (16:17 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:33 +0000 (19:08 +0530)
commitbf54b1a400d7aa826047019c0cb28792fcfe15b0
tree386dc1f9c24bd98e43e343aee00518b4520a0f8a
parentdfbe1e7f404eed0a01ae0060dbb227fad99b9656
device: Disable auto connect for temporary devices

When connecting a LE keyboard, if the user input the wrong passkey, the
stack would keep auto connect and thus allow the user to retry the
passkey indefinitely which is a security concern. This fix would
disallow the auto connect if the authentication failed.

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