Diff between 355d06b3f32147c1dfa39bfd1cd2d4e346b65492 and 8891babcf41962c11fc19bc240ddbb89cc6e6c99

Changed Files

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

Full Patch

diff --git a/monitor/rfcomm.c b/monitor/rfcomm.c
index 3eb19fa..41533b1 100644
--- a/monitor/rfcomm.c
+++ b/monitor/rfcomm.c
@@ -448,7 +448,7 @@ void rfcomm_packet(const struct l2cap_frame *frame)
 	else {
 		if (!l2cap_frame_get_u8(l2cap_frame, &ex_length))
 			goto fail;
-		hdr.length = ((uint16_t)length << 8) | ex_length;
+		hdr.length = ((uint16_t)ex_length << 8) | length;
 		hdr.length = GET_LEN16(hdr.length);
 	}