From 2820845e534ea404b9ab40192a184ecc01f897d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Kopy=C5=9Bci=C5=84ski?= Date: Fri, 4 Sep 2020 14:57:56 +0200 Subject: [PATCH] mesh/prov.c: Fix resending provisioning link ack The comparison of a current tx link transaction id caused us to not send ack and in effect fail provisioning. Fixes multiple tests from groups: MESH/NODE/CFG/AKL, MESH/NODE/CFG/MAKL --- nimble/host/mesh/src/prov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimble/host/mesh/src/prov.c b/nimble/host/mesh/src/prov.c index dbb086a8b..33f6d6017 100644 --- a/nimble/host/mesh/src/prov.c +++ b/nimble/host/mesh/src/prov.c @@ -1505,7 +1505,7 @@ static void link_open(struct prov_rx *rx, struct os_mbuf *buf) if (atomic_test_bit(link.flags, LINK_ACTIVE)) { /* Send another link ack if the provisioner missed the last */ - if (link.id == rx->link_id && link.expect == PROV_INVITE) { + if (link.id == rx->link_id) { BT_DBG("Resending link ack"); bearer_ctl_send(LINK_ACK, NULL, 0); } else {