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
This commit is contained in:
Krzysztof Kopyściński
2020-09-15 08:41:31 +02:00
committed by Łukasz Rymanowski
parent 2c7186445f
commit 2820845e53
+1 -1
View File
@@ -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 {