diff mbox series

[BlueZ] adapter: Fix execute "LE Add Device To Resolving List" command fail

Message ID 20240722052723.3031061-1-clancy_shang@163.com
State New
Headers show
Series [BlueZ] adapter: Fix execute "LE Add Device To Resolving List" command fail | expand

Commit Message

clancy_shang@163.com July 22, 2024, 5:27 a.m. UTC
From: Clancy Shang <clancy.shang@quectel.com>

According to BLUETOOTH CORE SPECIFICATION Version 5.4 | Vol 4, Part E,
7.8.38, If there is an existing entry in the resolving list with the same
non-zero Peer_IRK, the Controller should return the error code Invalid
HCI Command Parameters (0x12), so fix it.

Signed-off-by: Clancy Shang <clancy.shang@quectel.com>
---
 src/adapter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

bluez.test.bot@gmail.com July 22, 2024, 5:38 a.m. UTC | #1
This is an automated email and please do not reply to this email.

Dear Submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
While preparing the CI tests, the patches you submitted couldn't be applied to the current HEAD of the repository.

----- Output -----

error: patch failed: src/adapter.c:8978
error: src/adapter.c: patch does not apply
hint: Use 'git am --show-current-patch' to see the failed patch

Please resolve the issue and submit the patches again.


---
Regards,
Linux Bluetooth
diff mbox series

Patch

diff --git a/src/adapter.c b/src/adapter.c
index 9195edd7d..8823c7e3f 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -8978,7 +8978,7 @@  static void delete_exist_irk_from_directory(
 		if (irk_info) {
 			if (!memcmp(irk_info->val, key, 16)) {
 				DBG("Has same irk,delete it");
-				device = btd_adapter_find_device(adapter, 
+				device = btd_adapter_find_device(adapter,
 											&irk_info->bdaddr,
 											irk_info->bdaddr_type);
 				if (device)