diff --git a/monitor/rfcomm.c b/monitor/rfcomm.c
index cae6b2c..742bd7f 100644
--- a/monitor/rfcomm.c
+++ b/monitor/rfcomm.c
{
struct l2cap_frame *frame = &rfcomm_frame->l2cap_frame;
struct rfcomm_pn pn;
+ uint16_t mtu;
/* rfcomm_pn struct is defined in rfcomm.h */
if (!l2cap_frame_get_u8(frame, &pn.ack_timer))
return false;
- if (!l2cap_frame_get_le16(frame, &pn.mtu))
+ if (!l2cap_frame_get_le16(frame, &mtu))
return false;
+ pn.mtu = mtu;
+
if (!l2cap_frame_get_u8(frame, &pn.max_retrans))
return false;