mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ble_mesh: stack: Minor fix for provisioner provisioning timeout
This commit is contained in:
parent
6c55c9c800
commit
18a5b07607
@ -2725,12 +2725,8 @@ 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");
|
||||||
/**
|
/* Provisioner should send Link Close here */
|
||||||
* For the case MESH/PVNR/PBADV/BV-01, provisoner should
|
close_link(idx, CLOSE_REASON_TIMEOUT);
|
||||||
* sends link close with reason.
|
|
||||||
*/
|
|
||||||
close_link(idx,CLOSE_REASON_TIMEOUT);
|
|
||||||
reset_link(idx, CLOSE_REASON_TIMEOUT);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user