Skip to content

Commit 34841a9

Browse files
forx157espressif-bot
authored andcommitted
ble_mesh: stack: for the case MESH/PVNR/PBADV/BV-01, add the close link reason before reset link
1 parent 9b4ccdc commit 34841a9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/bt/esp_ble_mesh/mesh_core/provisioner_prov.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2725,6 +2725,11 @@ static void prov_retransmit(struct k_work *work)
27252725
#endif
27262726
if (k_uptime_get() - link[idx].tx.start > timeout) {
27272727
BT_WARN("Provisioner timeout, giving up transaction");
2728+
/**
2729+
* For the case MESH/PVNR/PBADV/BV-01, provisoner should
2730+
* sends link close with reason.
2731+
*/
2732+
close_link(idx,CLOSE_REASON_TIMEOUT);
27282733
reset_link(idx, CLOSE_REASON_TIMEOUT);
27292734
return;
27302735
}

0 commit comments

Comments
 (0)