ble_mesh: stack: Minor fix for provisioner provisioning timeout

pull/11147/head
lly 2023-03-23 10:26:23 +08:00 zatwierdzone przez BOT
rodzic 6c55c9c800
commit 18a5b07607
1 zmienionych plików z 2 dodań i 6 usunięć

Wyświetl plik

@ -2725,12 +2725,8 @@ static void prov_retransmit(struct k_work *work)
#endif
if (k_uptime_get() - link[idx].tx.start > timeout) {
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);
/* Provisioner should send Link Close here */
close_link(idx, CLOSE_REASON_TIMEOUT);
return;
}