Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ 1/2] smp-tester: Expect the identity key in Pairing Requests
@ 2026-10-24 11:25 Brandon Williams
  2026-10-24 11:25 ` [PATCH BlueZ 2/2] smp-tester: Add identity key distribution tests Brandon Williams
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Brandon Williams @ 2026-10-24 11:25 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Brandon Williams

The kernel distributes its identity address whenever it bonds over LE
("Bluetooth: SMP: distribute the identity address when bonding"), so
its Pairing Requests set IdKey in the initiator key distribution.

Assisted-by: Claude:claude-opus-5-5
---

Notes:
    These go with the kernel series "[PATCH 0/2] Bluetooth: SMP: distribute
    the identity address when bonding", sent to this list. Against
    bluetooth-next 47d4d9f67e92 under QEMU (arm64, TCG): without the kernel
    patches the four client tests updated here and both new tests fail;
    with them smp-tester passes 10/10 in each of 10 runs. make check passes.
    
    Tool use: written with an AI coding assistant (Claude Code, Claude
    Opus 5.5) together with the kernel series; see its cover letter.
    
    I read both test changes, including why the keys the kernel distributes
    are not compared, and ran the device tests described in the kernel cover
    letter myself.

 tools/smp-tester.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/smp-tester.c b/tools/smp-tester.c
index 581f3a233..cde1211af 100644
--- a/tools/smp-tester.c
+++ b/tools/smp-tester.c
@@ -327,7 +327,7 @@ static const uint8_t smp_basic_req_1[] = {	0x01,	/* Pairing Request */
 						0x00,	/* OOB Flag */
 						0x01,	/* Bonding - no MITM */
 						0x10,	/* Max key size */
-						0x05,	/* Init. key dist. */
+						0x07,	/* Init. key dist. */
 						0x05,	/* Rsp. key dist. */
 };
 static const uint8_t smp_basic_req_1_rsp[] = {	0x02,	/* Pairing Response */
@@ -375,7 +375,7 @@ static const uint8_t smp_basic_req_2[] = {	0x01,	/* Pairing Request */
 						0x00,	/* OOB Flag */
 						0x05,	/* Bonding - MITM */
 						0x10,	/* Max key size */
-						0x05,	/* Init. key dist. */
+						0x07,	/* Init. key dist. */
 						0x05,	/* Rsp. key dist. */
 };
 
@@ -414,7 +414,7 @@ static const uint8_t smp_sc_req_1[] = {	0x01,	/* Pairing Request */
 					0x00,	/* OOB Flag */
 					0x29,	/* Bonding - no MITM, SC, CT2 */
 					0x10,	/* Max key size */
-					0x0d,	/* Init. key dist. */
+					0x0f,	/* Init. key dist. */
 					0x0d,	/* Rsp. key dist. */
 };
 
-- 
2.56.0


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

end of thread, other threads:[~2026-11-08 15:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-24 11:25 [PATCH BlueZ 1/2] smp-tester: Expect the identity key in Pairing Requests Brandon Williams
2026-10-24 11:25 ` [PATCH BlueZ 2/2] smp-tester: Add identity key distribution tests Brandon Williams
2026-10-24 14:16 ` [BlueZ,1/2] smp-tester: Expect the identity key in Pairing Requests bluez.test.bot
2026-10-26 17:23 ` [PATCH BlueZ 1/2] " Brandon Williams
2026-11-08 15:06 ` [BlueZ,1/2] " bluez.test.bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox