Bluetooth: controller: Fix T_Terminate and other timeout calc.
Fix calculation of T_Terminate and other procedure timers by using ceil on calculated connection interval units. This fixes TP/CON/MAS/BI-02-C [Master T_Terminate Timer] and TP/CON/SLA/BI-02-C [Slave T_Terminate Timer] in LL.TS.5.0.0. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no> Signed-off-by: Ulrich Solli Myhre <ulmy@nordicsemi.no>
This commit is contained in:
parent
2800961fe1
commit
b07e7f2b5a
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@
|
|||
#include "common/log.h"
|
||||
|
||||
#define RADIO_TIFS 150
|
||||
#define RADIO_CONN_EVENTS(x, y) ((u16_t)((x) / (y)))
|
||||
#define RADIO_CONN_EVENTS(x, y) ((u16_t)(((x) + (y) - 1) / (y)))
|
||||
|
||||
#define RADIO_TICKER_JITTER_US 16
|
||||
#define RADIO_TICKER_START_PART_US 300
|
||||
|
@ -6632,7 +6632,7 @@ static void event_connection_prepare(u32_t ticks_at_expire,
|
|||
/* Terminate Procedure timeout is started, will
|
||||
* replace any other timeout running
|
||||
*/
|
||||
conn->procedure_expire = conn->procedure_reload;
|
||||
conn->procedure_expire = conn->supervision_reload;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue