From a4890f954af2df1f676d2f4530b819162e847729 Mon Sep 17 00:00:00 2001 From: Saleh Mehdikhani Date: Mon, 16 Jan 2023 16:53:45 +0200 Subject: [PATCH] Bluetooth: Controller: Fix slot_plus_us by converting max CTE len to us Fixes #53786 The variable slot_plus_us is assumed to be a number in us unit. To assign the maximum possible CTE length to this variable, BT_HCI_LE_CTE_LEN_MAX has been used while this parameter is defined in a 8us units (it's 0x14=20 that corresponds to 160us). To convert this number to us, it's needed to be multiplied by 8. Signed-off-by: Saleh Mehdikhani --- subsys/bluetooth/controller/ll_sw/ull_df.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subsys/bluetooth/controller/ll_sw/ull_df.c b/subsys/bluetooth/controller/ll_sw/ull_df.c index 64847ee8afa..1b8d062a889 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_df.c +++ b/subsys/bluetooth/controller/ll_sw/ull_df.c @@ -490,8 +490,9 @@ uint8_t ll_df_set_cl_iq_sampling_enable(uint16_t handle, /* Extend sync event by maximum CTE duration. * CTE duration depends on transmitter configuration * so it is unknown for receiver upfront. + * BT_HCI_LE_CTE_LEN_MAX is in 8us units. */ - slot_plus_us = BT_HCI_LE_CTE_LEN_MAX; + slot_plus_us = BT_HCI_LE_CTE_LEN_MAX * 8U; } }