Thread (2 messages) 2 messages, 2 authors, 2022-01-19

[PATCH BlueZ] mesh: Fix sequence number of message in friend queue

flat view
STALE1722d

From: Brian Gix <hidden>
Date: 2022-01-19 15:49:54
Subsystem: the rest · Maintainer: Linus Torvalds

As pointed out by https://github.com/bluez/bluez/issues/250, the last
segment of a multi-segmented message added to Friend Queue was getting
reset to the seqAuth value incorrectly. The correct sequence was set
within the preceding for loop.
---
 mesh/net.c | 1 -
 1 file changed, 1 deletion(-)
diff --git a/mesh/net.c b/mesh/net.c
index aa220f762..dd5398487 100644
--- a/mesh/net.c
+++ b/mesh/net.c
@@ -1325,7 +1325,6 @@ static bool friend_packet_queue(struct mesh_net *net,
 			hdr += (1 << SEGO_HDR_SHIFT);
 		}
 
-		frnd_msg->u.s12[seg_max].seq = seq;
 		frnd_msg->cnt_in = seg_max;
 		frnd_msg->last_len = size % 12;
 		if (!frnd_msg->last_len)
-- 
2.31.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help