From: Luiz Augusto von Dentz Date: Wed, 20 Apr 2022 23:43:31 +0000 (-0700) Subject: btmon: Fix decoding of Enhanced Credit Connection Request X-Git-Tag: accepted/tizen/unified/20230608.164325~272 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cdda7ca22ae785e853e3e0d2068f7671695bbf00;p=platform%2Fupstream%2Fbluez.git btmon: Fix decoding of Enhanced Credit Connection Request This fixes the decoding of Enhanced Credit Connection Request which was not accounting the fields correctly causing 2 extra Source CID to be printed. Signed-off-by: Manika Shrivastava Signed-off-by: Ayush Garg --- diff --git a/monitor/l2cap.c b/monitor/l2cap.c index 97afef7..b468d67 100755 --- a/monitor/l2cap.c +++ b/monitor/l2cap.c @@ -1330,7 +1330,7 @@ static void sig_ecred_conn_req(const struct l2cap_frame *frame) const struct bt_l2cap_pdu_ecred_conn_req *pdu = frame->data; uint16_t scid; - l2cap_frame_pull((void *)frame, frame, sizeof(pdu)); + l2cap_frame_pull((void *)frame, frame, sizeof(*pdu)); print_psm(pdu->psm); print_field("MTU: %u", le16_to_cpu(pdu->mtu));