Return-Path: From: Bharat Bhusan Panda To: 'Luiz Augusto von Dentz' Cc: linux-bluetooth@vger.kernel.org, cpgs@samsung.com References: <1426858595-29346-1-git-send-email-bharat.panda@samsung.com> <022501d0654c$9ee015b0$dca04110$@samsung.com> <022f01d06579$955ccec0$c0166c40$@samsung.com> In-reply-to: <022f01d06579$955ccec0$c0166c40$@samsung.com> Subject: RE: [PATCH v2] monitor: Add AVDTP support to btmon Date: Fri, 27 Mar 2015 16:20:34 +0530 Message-id: <000001d0687b$df7d95c0$9e78c140$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Luiz, > -----Original Message----- > From: linux-bluetooth-owner@vger.kernel.org [mailto:linux-bluetooth- > owner@vger.kernel.org] On Behalf Of Bharat Bhusan Panda > Sent: Monday, March 23, 2015 8:27 PM > To: 'Luiz Augusto von Dentz' > Cc: linux-bluetooth@vger.kernel.org; cpgs@samsung.com > Subject: RE: [PATCH v2] monitor: Add AVDTP support to btmon > > Hi Luiz, > > > >> + > > >> +void avdtp_packet(const struct l2cap_frame *frame) { > > >> + struct l2cap_frame *l2cap_frame; > > >> + struct avdtp_frame avdtp_frame; > > >> + const char *pdu_color; > > >> + > > >> + l2cap_frame_pull(&avdtp_frame.l2cap_frame, frame, 0); > > >> + > > >> + l2cap_frame = &avdtp_frame.l2cap_frame; > > >> + > > >> + avdtp_frame.tsid = 0x00; > > >> + if (!l2cap_frame_get_u8(l2cap_frame, &avdtp_frame.hdr) || > > >> + !l2cap_frame_get_u8(l2cap_frame, > > >> &avdtp_frame.tsid)) { > > >> + print_text(COLOR_ERROR, "frame too short"); > > >> + packet_hexdump(frame->data, frame->size); > > >> + return; > > >> + } > > > > It looks like you are treating all frames as signalling but A2DP uses > > the same PSM for streaming so I wonder if you have tried this with an > active stream? > Yes, I was testing it through mecApp, so couldn't test the real media > streaming of the same. > I agree, it is treating all frames as signaling frames, which is how it should not > be. I will submit another version for this patch handling the same. > > > I have submitted new version of the patch, which treats signaling and media frames in different frame numbers (as it is done in hcidump). As of now, this patch parses only AVDTP signaling frame and raw dump on media frames (which will be handled in my following set of patches. Please review. Thanks Best Regards, Bharat