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 <saleh.mehdikhani@unikie.com>
This commit is contained in:
Saleh Mehdikhani 2023-01-16 16:53:45 +02:00 committed by Carles Cufí
commit a4890f954a

View file

@ -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;
}
}