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:
parent
fc0157f97c
commit
a4890f954a
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue