device: Fix pairing has failed due to the error of Already Paired (0x13)
authorwangyouwan <wangyouwan@uniontech.com>
Tue, 10 May 2022 01:27:35 +0000 (09:27 +0800)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
commit6738efcf484a75120f858a510eef1b4b05dded3d
tree9b1ae50002118acbe0c2cadc33e3a7688e748ea3
parentf85bed24b2a050d2b525b03aa329a9041f640229
device: Fix pairing has failed due to the error of Already Paired (0x13)

After connect the Bluetooth mouse, open two Bluetoothctl at the same time,
when remove the mouse, quickly go to power off,
try to paired the mouse again when I was power on,
found that the error 0x13 was always reported.
try to connect directly,can connect successfully.
but use the info command to query the information of the mouse
and find that the pairing status of the mouse is No.
so I try to delete the paired information in the kernel
through the "* cancel_pairing()" interface.

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/device.c