From 24e9f567b4f1841567022de47c749e36cb56b546 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 7 Jun 2013 12:34:19 +0700 Subject: [PATCH] monitor: Add ATT read blob response decoding support --- monitor/l2cap.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/monitor/l2cap.c b/monitor/l2cap.c index a4d57295d..102b7ae6c 100644 --- a/monitor/l2cap.c +++ b/monitor/l2cap.c @@ -1731,6 +1731,11 @@ static void att_read_blob_req(const struct l2cap_frame *frame) print_field("Offset: 0x%4.4x", bt_get_le16(frame->data + 2)); } +static void att_read_blob_rsp(const struct l2cap_frame *frame) +{ + packet_hexdump(frame->data, frame->size); +} + static void att_read_group_type_req(const struct l2cap_frame *frame) { print_handle_range("Handle range", frame->data); @@ -1807,7 +1812,8 @@ static const struct att_opcode_data att_opcode_table[] = { att_read_rsp, 0, false }, { 0x0c, "Read Blob Request", att_read_blob_req, 4, true }, - { 0x0d, "Read Blob Response" }, + { 0x0d, "Read Blob Response", + att_read_blob_rsp, 0, false }, { 0x0e, "Read Multiple Request" }, { 0x0f, "Read Multiple Response" }, { 0x10, "Read By Group Type Request", -- 2.11.0