Bluetooth: controller: Fix terminate procedure timeout
Fix terminate procedure timeout when supervision timeout equals connection interval. In this case, avoid timing out in the first event of procedure initiation. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
b0f3944e90
commit
1ff96f2588
1 changed files with 7 additions and 0 deletions
|
@ -6792,6 +6792,13 @@ static void event_connection_prepare(u32_t ticks_at_expire,
|
|||
* replace any other timeout running
|
||||
*/
|
||||
conn->procedure_expire = conn->supervision_reload;
|
||||
|
||||
/* NOTE: if supervision timeout equals connection
|
||||
* interval, dont timeout in current event.
|
||||
*/
|
||||
if (conn->procedure_expire <= 1) {
|
||||
conn->procedure_expire++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue