Diff between 3f7d7f6db5872dfae71c0c858ac1522e5f5697c0 and 32641ce15e4e18196fa63a307e1f56a11e6095e4

Changed Files

File Additions Deletions Status
monitor/rfcomm.c +4 -1 modified

Full Patch

diff --git a/monitor/rfcomm.c b/monitor/rfcomm.c
index cae6b2c..742bd7f 100644
--- a/monitor/rfcomm.c
+++ b/monitor/rfcomm.c
@@ -265,6 +265,7 @@ static inline bool mcc_pn(struct rfcomm_frame *rfcomm_frame, uint8_t indent)
 {
 	struct l2cap_frame *frame = &rfcomm_frame->l2cap_frame;
 	struct rfcomm_pn pn;
+	uint16_t mtu;
 
 	/* rfcomm_pn struct is defined in rfcomm.h */
 
@@ -284,9 +285,11 @@ static inline bool mcc_pn(struct rfcomm_frame *rfcomm_frame, uint8_t indent)
 	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;