From 8d759fcec449ab853c26f3b6f0c987b5780c3d39 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Mon, 12 Dec 2016 16:45:28 +0100 Subject: [PATCH] Bluetooth: SMP: Fix key_id length in smp_h6_test key_id is 4 bytes value. Change-Id: I2550f3c2b5ab328562fa4375d215b04d2fc76e6f Signed-off-by: Szymon Janc --- subsys/bluetooth/host/smp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/host/smp.c b/subsys/bluetooth/host/smp.c index 4cba4ef92bb..1f1cd1d3534 100644 --- a/subsys/bluetooth/host/smp.c +++ b/subsys/bluetooth/host/smp.c @@ -4017,7 +4017,7 @@ static int smp_h6_test(void) { uint8_t w[16] = { 0x9b, 0x7d, 0x39, 0x0a, 0xa6, 0x10, 0x10, 0x34, 0x05, 0xad, 0xc8, 0x57, 0xa3, 0x34, 0x02, 0xec }; - uint8_t key_id[8] = { 0x72, 0x62, 0x65, 0x6c }; + uint8_t key_id[4] = { 0x72, 0x62, 0x65, 0x6c }; uint8_t exp_res[16] = { 0x99, 0x63, 0xb1, 0x80, 0xe2, 0xa9, 0xd3, 0xe8, 0x1c, 0xc9, 0x6d, 0xe7, 0x02, 0xe1, 0x9a, 0x2d}; uint8_t res[16];