zephyr/subsys/bluetooth/controller
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
..
crypto
hal Bluetooth: controller: ll_sw: nordic: Add DF antenna configuration handling 2021-01-20 14:55:24 +01:00
hci Bluetooth: Controller: Add todos for per adv chain scan 2021-08-27 11:46:31 -04:00
include Bluetooth: Controller: Fix radio packet size for Extended Scanning 2021-08-26 13:42:41 -04:00
ll_sw Bluetooth: controller: df: fix error in remove CTE from per adv 2021-09-04 10:54:36 -04:00
ticker Bluetooth: controller: Add ticker_yield_abs interface 2021-06-14 15:19:33 +02:00
util Bluetooth: controller: Add function to calculate BIS access address 2021-05-05 08:41:09 -04:00
CMakeLists.txt Bluetooth: Controller: Warn when building experimental features 2021-07-10 14:53:26 -04:00
Kconfig Bluetooth: Controller: Fix radio packet size for Extended Scanning 2021-08-26 13:42:41 -04:00
Kconfig.df Bluetooth: Controller: Fix DF for per adv chains scanning 2021-08-27 11:46:31 -04:00
Kconfig.ll_sw_split Bluetooth: Controller: clean up nRF DFE 2021-08-17 17:52:43 -04:00