mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-29 04:07:23 +00:00
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:
committed by
Łukasz Rymanowski
parent
2c7186445f
commit
2820845e53
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user