summaryrefslogtreecommitdiff
path: root/monitor/l2cap.c
diff options
context:
space:
mode:
authorƁukasz Rymanowski <lukasz.rymanowski@codecoup.pl>2020-03-12 08:30:45 +0100
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-03-12 16:28:27 -0700
commit031728b411f56b4ed7f136c20b491f421a404ad9 (patch)
tree7254f1feb80569f4aed38a0cea33e43fb4cd68f6 /monitor/l2cap.c
parent9541d862f012ff0d00b5cc86613b80f0d2d89afc (diff)
downloadbluez-031728b411f56b4ed7f136c20b491f421a404ad9.tar.gz
monitor: Fix for incorrect len in L2CAP Enhanced Reconfigure
Diffstat (limited to 'monitor/l2cap.c')
-rw-r--r--monitor/l2cap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/monitor/l2cap.c b/monitor/l2cap.c
index 9409604c3..41c766863 100644
--- a/monitor/l2cap.c
+++ b/monitor/l2cap.c
@@ -1408,7 +1408,7 @@ static void sig_ecred_conn_rsp(const struct l2cap_frame *frame)
const struct bt_l2cap_pdu_ecred_conn_rsp *pdu = frame->data;
uint16_t dcid;
- l2cap_frame_pull((void *)frame, frame, sizeof(pdu));
+ l2cap_frame_pull((void *)frame, frame, sizeof(*pdu));
print_field("MTU: %u", le16_to_cpu(pdu->mtu));
print_field("MPS: %u", le16_to_cpu(pdu->mps));
@@ -1426,7 +1426,7 @@ static void sig_ecred_reconf_req(const struct l2cap_frame *frame)
const struct bt_l2cap_pdu_ecred_reconf_req *pdu = frame->data;
uint16_t scid;
- l2cap_frame_pull((void *)frame, frame, sizeof(pdu));
+ l2cap_frame_pull((void *)frame, frame, sizeof(*pdu));
print_field("MTU: %u", le16_to_cpu(pdu->mtu));
print_field("MPS: %u", le16_to_cpu(pdu->mps));