summaryrefslogtreecommitdiff
path: root/mesh
diff options
context:
space:
mode:
authorBrian Gix <brian.gix@intel.com>2022-01-19 07:44:11 -0800
committerBrian Gix <brian.gix@intel.com>2022-02-04 11:45:02 -0800
commitc2c0bff891927d9a7ed3820671822ffab5f0f556 (patch)
treeb8a2e0ca91b855c820aba5006236ef0c2ac356f2 /mesh
parentc1e12f4da62b9a7728e8bb85392167f284e8dd35 (diff)
downloadbluez-c2c0bff891927d9a7ed3820671822ffab5f0f556.tar.gz
mesh: Fix sequence number of message in friend queue
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.
Diffstat (limited to 'mesh')
-rw-r--r--mesh/net.c1
1 files changed, 0 insertions, 1 deletions
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)