Skip to content

Commit 7a41a9d

Browse files
PavelVPVcarlescufi
authored andcommitted
Bluetooth: Mesh: Fix processing SegAcks to wrong destination
Do not process SegAcks which were not targeted to the node. They were rejected in the next if statement always, but generated the annyoing warning "No matching TX context for ack". Signed-off-by: Pavel Vasilyev <[email protected]>
1 parent 1bc8490 commit 7a41a9d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

subsys/bluetooth/mesh/transport.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,8 @@ static int trans_ack(struct bt_mesh_net_rx *rx, uint8_t hdr,
869869
/* Best effort - we don't have enough info for true SeqAuth */
870870
*seq_auth = SEQ_AUTH(BT_MESH_NET_IVI_RX(rx), seq_zero);
871871
return 0;
872+
} else if (!rx->local_match) {
873+
return 0;
872874
}
873875

874876
ack = net_buf_simple_pull_be32(buf);
@@ -969,7 +971,7 @@ static int ctl_recv(struct bt_mesh_net_rx *rx, uint8_t hdr,
969971
return bt_mesh_hb_recv(rx, buf);
970972
}
971973

972-
/* Only acks and heartbeats may need processing without local_match */
974+
/* Only acks for friendship and heartbeats may need processing without local_match */
973975
if (!rx->local_match) {
974976
return 0;
975977
}

0 commit comments

Comments
 (0)