From 8071e96a3e7fb818af2bc4434762f67818ddcb59 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 23 Oct 2013 14:10:33 +0300 Subject: [PATCH] tools/l2cap-tester: Fix command reject expected responses Invalid CID responses also contain the CID(s) that were invalid. --- tools/l2cap-tester.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/l2cap-tester.c b/tools/l2cap-tester.c index df8f1bf4b..acfd7c340 100644 --- a/tools/l2cap-tester.c +++ b/tools/l2cap-tester.c @@ -290,7 +290,8 @@ static const struct l2cap_server_data l2cap_server_nval_pdu_test1 = { }; static const uint8_t l2cap_nval_dc_req[] = { 0x12, 0x34, 0x56, 0x78 }; -static const uint8_t l2cap_nval_cid_rsp[] = { 0x02, 0x00 }; +static const uint8_t l2cap_nval_cid_rsp[] = { 0x02, 0x00, + 0x12, 0x34, 0x56, 0x78 }; static const struct l2cap_server_data l2cap_server_nval_cid_test1 = { .send_req_code = BT_L2CAP_PDU_DISCONN_REQ, @@ -302,7 +303,8 @@ static const struct l2cap_server_data l2cap_server_nval_cid_test1 = { }; static const uint8_t l2cap_nval_cfg_req[] = { 0x12, 0x34, 0x00, 0x00 }; -static const uint8_t l2cap_nval_cfg_rsp[] = { 0x02, 0x00 }; +static const uint8_t l2cap_nval_cfg_rsp[] = { 0x02, 0x00, + 0x12, 0x34, 0x00, 0x00 }; static const struct l2cap_server_data l2cap_server_nval_cid_test2 = { .send_req_code = BT_L2CAP_PDU_CONFIG_REQ, -- 2.11.0