From 69ccc52efbff3f4862d1badd66ae5e593c547346 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 18 Aug 2014 13:58:27 +0300 Subject: [PATCH] smp-tester: Fix invalid data test to expect a disconnect --- tools/smp-tester.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/smp-tester.c b/tools/smp-tester.c index 83d5ee0ac..27a75e87a 100644 --- a/tools/smp-tester.c +++ b/tools/smp-tester.c @@ -324,13 +324,17 @@ static const uint8_t smp_nval_req_4[] = { 0xff, 0xff }; static const uint8_t smp_nval_req_4_rsp[] = { 0x05, 0x07 }; static const struct smp_req_rsp srv_nval_req_3[] = { - { smp_nval_req_4, sizeof(smp_nval_req_4), - smp_nval_req_4_rsp, sizeof(smp_nval_req_4_rsp) }, + { smp_nval_req_4, sizeof(smp_nval_req_4), NULL, 0 }, }; +static const uint8_t disconn_param[] = { 0x2a, 0x00, 0x05 }; + static const struct smp_data smp_server_nval_req_4_test = { .req = srv_nval_req_3, .req_count = G_N_ELEMENTS(srv_nval_req_3), + .expect_hci_command = BT_HCI_CMD_DISCONNECT, + .expect_hci_param = disconn_param, + .expect_hci_len = sizeof(disconn_param), }; static const uint8_t smp_basic_req_1[] = { 0x01, /* Pairing Request */ -- 2.47.3