All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] device: Fix pairing has failed due to the error of Already Paired (0x13)
@ 2022-05-10  1:27 wangyouwan
  2022-05-10  3:01 ` bluez.test.bot
  2022-05-11 21:40 ` [PATCH] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: wangyouwan @ 2022-05-10  1:27 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: wangyouwan

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: wangyouwan <wangyouwan@uniontech.com>
---
 src/device.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/device.c b/src/device.c
index 6da5c380b..f3ce55eff 100644
--- a/src/device.c
+++ b/src/device.c
@@ -3106,8 +3106,11 @@ static DBusMessage *cancel_pairing(DBusConnection *conn, DBusMessage *msg,
 
 	DBG("");
 
-	if (!req)
+	if (!req) {
+		btd_adapter_remove_bonding(device->adapter, &device->bdaddr,
+						device->bdaddr_type);
 		return btd_error_does_not_exist(msg);
+	}
 
 	device_cancel_bonding(device, MGMT_STATUS_CANCELLED);
 
-- 
2.20.1




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: device: Fix pairing has failed due to the error of Already Paired (0x13)
  2022-05-10  1:27 [PATCH] device: Fix pairing has failed due to the error of Already Paired (0x13) wangyouwan
@ 2022-05-10  3:01 ` bluez.test.bot
  2022-05-11 21:40 ` [PATCH] " patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2022-05-10  3:01 UTC (permalink / raw)
  To: linux-bluetooth, wangyouwan

[-- Attachment #1: Type: text/plain, Size: 997 bytes --]

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=639955

---Test result---

Test Summary:
CheckPatch                    PASS      1.40 seconds
GitLint                       PASS      1.03 seconds
Prep - Setup ELL              PASS      53.23 seconds
Build - Prep                  PASS      0.85 seconds
Build - Configure             PASS      10.89 seconds
Build - Make                  PASS      1805.67 seconds
Make Check                    PASS      12.83 seconds
Make Check w/Valgrind         PASS      537.08 seconds
Make Distcheck                PASS      282.72 seconds
Build w/ext ELL - Configure   PASS      10.84 seconds
Build w/ext ELL - Make        PASS      1707.43 seconds
Incremental Build with patchesPASS      0.00 seconds



---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] device: Fix pairing has failed due to the error of Already Paired (0x13)
  2022-05-10  1:27 [PATCH] device: Fix pairing has failed due to the error of Already Paired (0x13) wangyouwan
  2022-05-10  3:01 ` bluez.test.bot
@ 2022-05-11 21:40 ` patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2022-05-11 21:40 UTC (permalink / raw)
  To: wangyouwan; +Cc: linux-bluetooth

Hello:

This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Tue, 10 May 2022 09:27:35 +0800 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - device: Fix pairing has failed due to the error of Already Paired (0x13)
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=4423d63a9634

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-05-11 21:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-10  1:27 [PATCH] device: Fix pairing has failed due to the error of Already Paired (0x13) wangyouwan
2022-05-10  3:01 ` bluez.test.bot
2022-05-11 21:40 ` [PATCH] " patchwork-bot+bluetooth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.