zephyr/subsys/bluetooth
Piotr Pryga a95457a984 Bluetooth: controller: df: Fixes truncated transmission of CTE
There was an issue with wrong length of CTE send in connectionless
mode, with periodic advertising PDUs. Radio peripheral was not
configured to send CTE with correct length while PDU had CTEInfo
field informing receiver that CTE is attached to the PDU.

Source of the problem was in ll_df_set_cl_cte_tx_enable function.

Order of parameters in ull_adv_sync_pdu_alloc was wrong.
ULL_ADV_PDU_HDR_FIELD_CTE_INFO was speficed as hdr_rem_fields.
Because of that extra_data, memory used to provide CTE configuration
to LLL, was not allocated. PDU content is prepared in ULL, so CTEInfo
field included correct information, while Radio was never configured
by LLL to send CTE.

ull_adv_sync_extra_data_set_clear received a pointer to hdr_data,
instead of a direct pointer to df_cfg structure. When extra_data
was allocated correclty, wrong CTE configuration was provided
copied there and LLL received invalid CTE length. It was different
than the length in PDUs CTEInfo field.

Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
2021-07-15 11:39:13 +02:00
..
audio Bluetooth: Audio: AICS client add function to get conn pointer 2021-06-24 11:31:04 -04:00
common Bluetooth: Mesh: Align capitalization for BT mesh 2021-07-13 11:23:54 -04:00
controller Bluetooth: controller: df: Fixes truncated transmission of CTE 2021-07-15 11:39:13 +02:00
host Bluetooth: SDP: judge the buf->len before sys_get_be16 2021-07-13 14:18:28 +03:00
mesh Bluetooth: Mesh: Add msg length check for Cfg and Health models 2021-07-15 11:34:52 +02:00
services bluetooth: services: hrs: use template for logging configuration 2021-07-05 14:34:25 +03:00
shell Bluetooth: Audio: AICS remove need for bt_conn pointer 2021-06-24 11:31:04 -04:00
CMakeLists.txt Bluetooth: Audio: Volume Offset Control Service and Client 2021-03-22 13:05:56 -04:00
Kconfig Bluetooth: ISO: Split connected and broadcast ISO Kconfig 2021-06-22 08:21:00 -04:00