mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
ble_mesh: stack: for the case MESH/PVNR/PBADV/BV-01, add the close link reason before reset link
This commit is contained in:
@ -2725,6 +2725,11 @@ static void prov_retransmit(struct k_work *work)
|
|||||||
#endif
|
#endif
|
||||||
if (k_uptime_get() - link[idx].tx.start > timeout) {
|
if (k_uptime_get() - link[idx].tx.start > timeout) {
|
||||||
BT_WARN("Provisioner timeout, giving up transaction");
|
BT_WARN("Provisioner timeout, giving up transaction");
|
||||||
|
/**
|
||||||
|
* For the case MESH/PVNR/PBADV/BV-01, provisoner should
|
||||||
|
* sends link close with reason.
|
||||||
|
*/
|
||||||
|
close_link(idx,CLOSE_REASON_TIMEOUT);
|
||||||
reset_link(idx, CLOSE_REASON_TIMEOUT);
|
reset_link(idx, CLOSE_REASON_TIMEOUT);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user