Return-Path: From: Andre Dieb Martins To: linux-bluetooth@vger.kernel.org Cc: Andre Dieb Martins Subject: [PATCH -v3 5/6] Add ATT dump for read req/resp Date: Wed, 9 Feb 2011 14:28:54 -0300 Message-Id: <1297272535-14890-5-git-send-email-andre.dieb@signove.com> In-Reply-To: <1297272535-14890-1-git-send-email-andre.dieb@signove.com> References: <1297272535-14890-1-git-send-email-andre.dieb@signove.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: --- parser/att.c | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/parser/att.c b/parser/att.c index d8a10fc..887cdac 100644 --- a/parser/att.c +++ b/parser/att.c @@ -330,6 +330,14 @@ static void att_find_info_resp_dump(int level, struct frame *frm) } } +static void att_read_req_dump(int level, struct frame *frm) +{ + uint16_t handle = btohs(htons(get_u16(frm))); + + p_indent(level, frm); + printf("handle 0x%2.2x\n", handle); +} + static void att_handle_notify_dump(int level, struct frame *frm) { uint16_t handle = btohs(htons(get_u16(frm))); @@ -370,6 +378,12 @@ void att_dump(int level, struct frame *frm) case ATT_OP_FIND_INFO_RESP: att_find_info_resp_dump(level + 1, frm); break; + case ATT_OP_READ_REQ: + att_read_req_dump(level + 1, frm); + break; + case ATT_OP_READ_RESP: + raw_dump(level + 1, frm); + break; case ATT_OP_HANDLE_NOTIFY: att_handle_notify_dump(level + 1, frm); break; -- 1.7.1