zephyr/subsys/bluetooth/controller/ll_sw
Piotr Pryga aecdf4c242 Bluetooth: controller: df: fix error in remove CTE from per adv
cte_info_clear function is responsible for remove of CTE from
periodic advertising PDUs, including remove from optional chained
PDUs. The function uses subortinate function rem_cte_info_from_per_-
adv_chain to remove CTE from chained PDUs.

The rem_cte_info_from_per_adv_chain had pdu_prev and pdu as arguments.
After return from the function the pdu_prev should point to last
PDU from previously used periodic advertising data and pdu should
point to last new periodic advertising data.

The rem_cte_info_from_per_adv_chain function removes CTEInfo from
all but last one PDU. Last PDU must have removed AuxPtr field also.
Remove of CTEInfo and AuxPtr from last PDU is done explicitly in
the cte_info_clear function.

Unfortunately rem_cte_info_from_per_adv_chain had wrong type of
parameters for pdu_prev and pdu. These parameters were pointers
instead od double pointers.
That caused cte_info_clear function to remove CTEInfo and AuxPtr
from first PDU in a chain, which is AUX_SYNC_IND.

Changed parameters pdu_prev and pdu in the rem_cte_info_from_per_adv_-
chain to be double pointers.

Added small corrections in comments.

Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
Co-authored-by: Emil Gydesen <Thalley@users.noreply.github.com>
2021-09-04 10:54:36 -04:00
..
nordic Bluetooth: Controller: Fix null pointer dereferencing in periodic sync 2021-09-01 08:38:37 -04:00
openisa
isoal.c
isoal.h
ll_addr.c
ll_feat.c Bluetooth: controller: Add CTE Rx params struct to lll_conn declaration 2021-08-18 20:11:10 -04:00
ll_settings.c
ll_test.h
ll_tx_pwr.c Bluetooth: controller: Add CTE Rx params struct to lll_conn declaration 2021-08-18 20:11:10 -04:00
lll_adv_aux.h
lll_adv_sync.h
lll_adv.h Bluetooth: Controller: Use define for channel map size 2021-08-27 09:34:16 -04:00
lll_central_iso.h
lll_chan.c
lll_chan.h
lll_clock.h
lll_common.c Bluetooth: controller: Implement ADV re-schedule for new scheduler 2021-08-13 07:30:56 -04:00
lll_conn_iso.h
lll_conn.h Bluetooth: Controller: Use define for channel map size 2021-08-27 09:34:16 -04:00
lll_df.h
lll_filter.h
lll_master.h
lll_peripheral_iso.h
lll_scan_aux.h Bluetooth: Controller: Move aux sync scanning to lll_sync 2021-08-27 11:46:31 -04:00
lll_scan.h Bluetooth: Controller: Resume primary PDU scanning after Auxiliary PDU 2021-08-17 17:36:19 +02:00
lll_sched.h
lll_slave.h
lll_sync_iso.h
lll_sync.h Bluetooth: Controller: Make lll_create_iq_report static again 2021-08-27 11:46:31 -04:00
lll.h Bluetooth: Controller: Remove unused flag 2021-08-27 11:46:31 -04:00
nrf.cmake
openisa.cmake
pdu.h Bluetooth: Controller: Ignore PDU with RFU field set 2021-08-27 09:34:16 -04:00
ull_adv_aux.c Bluetooth: Controller: Fix uninitialized pointer read of SR ADI 2021-08-31 14:04:28 +02:00
ull_adv_internal.h Bluetooth: Controller: Use defines to access hdr_data fields 2021-08-27 09:34:16 -04:00
ull_adv_iso.c
ull_adv_sync.c Bluetooth: Controller: Use defines to access hdr_data fields 2021-08-27 09:34:16 -04:00
ull_adv_types.h Bluetooth: Controller: Use id addr type to check same peer connection 2021-08-27 06:47:21 -04:00
ull_adv.c Bluetooth: Controller: Use id addr type to check same peer connection 2021-08-27 06:47:21 -04:00
ull_central_iso_internal.h
ull_central_iso.c
ull_chan_internal.h Bluetooth: Controller: Periodic Advertising Chan Map Update Indication 2021-08-27 09:34:16 -04:00
ull_chan.c Bluetooth: Controller: Periodic Adv Review Rework 2021-08-27 09:34:16 -04:00
ull_conn_internal.h Bluetooth: Controller: Use id addr type to check same peer connection 2021-08-27 06:47:21 -04:00
ull_conn_iso_internal.h
ull_conn_iso_types.h
ull_conn_iso.c Bluetooth: Controller: Minor rename of disabled callback functions 2021-08-27 06:46:55 -04:00
ull_conn_types.h Bluetooth: Controller: Use id addr type to check same peer connection 2021-08-27 06:47:21 -04:00
ull_conn.c Bluetooth: Controller: Fix missing reset of connection handle 2021-08-27 06:47:21 -04:00
ull_df_internal.h
ull_df_types.h Bluetooth: Controller: Fix DF for per adv chains scanning 2021-08-27 11:46:31 -04:00
ull_df.c Bluetooth: controller: df: fix error in remove CTE from per adv 2021-09-04 10:54:36 -04:00
ull_filter.c Bluetooth: Controller: Use id addr type to check same peer connection 2021-08-27 06:47:21 -04:00
ull_filter.h
ull_internal.h Bluetooth: Controller: Minor refactor of extra done type set function 2021-08-20 12:49:43 +02:00
ull_iso_internal.h
ull_iso_types.h
ull_iso.c
ull_master_internal.h Bluetooth: Controller: Periodic Advertising Chan Map Update Indication 2021-08-27 09:34:16 -04:00
ull_master.c Bluetooth: Controller: Periodic Adv Review Rework 2021-08-27 09:34:16 -04:00
ull_peripheral_iso_internal.h
ull_peripheral_iso.c
ull_scan_aux.c Bluetooth: Controller: Move aux sync scanning to lll_sync 2021-08-27 11:46:31 -04:00
ull_scan_internal.h Bluetooth: Controller: Release LLL scheduling aux on incomplete data 2021-08-17 17:36:19 +02:00
ull_scan_types.h Bluetooth: Controller: Store parent lll struct in aux context 2021-08-27 11:46:31 -04:00
ull_scan.c Bluetooth: Controller: Fix LLL events pending check from ULL Low 2021-08-27 06:46:55 -04:00
ull_sched_internal.h
ull_sched.c Bluetooth: controller: Add CTE Rx params struct to lll_conn declaration 2021-08-18 20:11:10 -04:00
ull_slave_internal.h
ull_slave.c Bluetooth: Controller: Use id addr type to check same peer connection 2021-08-27 06:47:21 -04:00
ull_sync_internal.h Bluetooth: Controller: Add chain scanning for per adv 2021-08-27 11:46:31 -04:00
ull_sync_iso_internal.h
ull_sync_iso.c
ull_sync_types.h
ull_sync.c Bluetooth: Controller: Add chain scanning for per adv 2021-08-27 11:46:31 -04:00
ull.c Bluetooth: Controller: Update BT_CTLR_ADV_EXT_RX_CNT for ea and df 2021-08-27 11:46:31 -04:00