input: Remove bonding info when receiving virtual cable unplug
authorArchie Pusaka <apusaka@chromium.org>
Thu, 16 Jul 2020 18:04:33 +0000 (02:04 +0800)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:50 +0000 (14:30 +0530)
commit446f38ea3c31e8a92c8d559854701695fc88e20f
treef9cd83c4b0330822370a07f9c52466f0d4583f3c
parente1191f2729f40f83c8eb934b3b8275b123ebff8f
input: Remove bonding info when receiving virtual cable unplug

From Bluetooth HID Profile 1.1 Spec: If a Virtual Cable is
unplugged via a HID control Virtual Unplug command, then both the
Bluetooth HID device and Bluetooth HID Host shall destroy or
invalidate all Bluetooth bonding and Virtual Cable information
that was previously stored in persistent memory for the respective
Virtually Cabled devices and hosts.

This patch removes the bonding information upon receiving and/or
sending a "virtual cable unplug".

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