zephyr/subsys/bluetooth/controller
Piotr Pryga c18477ad25 Bluetooth: Controller: llcp: fix wrong cond in prepare instant
In a function pu_prepare_instant there is a condition that
checks if there is actual change of a PHY. That condition
was based on ctx->data.pu.tx and ctx->data.pu.rx.
These members store PHY that is or will be used, hence
the condition is wrong. Even there is no actual change in
the PHY, values could be not equal to zero. In such case
the instant value would be set to wrong value.
What more the condition be an 'or' not an 'and' because
one of the values must be different than zero to have the
PHY change and instant different than zero.

After update of the condition, the function call places
must be changed. The ctx->data.pu.c_to_p_phy and
ctx->data.pu.p_to_c_phy are set in pu_prepare_update_ind
function, hence pu_prepare_instant should be called after
that.

Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
2022-05-06 11:50:59 +02:00
..
crypto
hal Bluetooth: Controller: df: make radio_df_vendor_hal.h compile in always 2022-03-21 10:15:39 +01:00
hci Bluetooth: controller: ISO TX data path including ISOAL 2022-05-06 11:32:30 +02:00
include Bluetooth: controller: ISO TX data path including ISOAL 2022-05-06 11:32:30 +02:00
ll_sw Bluetooth: Controller: llcp: fix wrong cond in prepare instant 2022-05-06 11:50:59 +02:00
ticker Bluetooth: Controller: Yield stopped ticker time reservations 2022-03-23 12:53:38 +01:00
util Bluetooth: Controller: Update to increase simultaneous connection limit 2022-04-04 10:24:34 +02:00
CMakeLists.txt Bluetooth: Controller: Schedule BIG event after Periodic Adv event 2022-03-01 11:51:46 +01:00
Kconfig Bluetooth: Controller: Add Kconfig to limit advertising interval max 2022-05-06 11:31:44 +02:00
Kconfig.df Bluetooth: Controller: DF configs should not depend on BT_LL_SW_SPLIT 2022-05-05 14:39:04 -05:00
Kconfig.dtm bluetooth: controller: Add support for all DTM commands 2022-03-18 12:00:03 +01:00
Kconfig.ll_sw_split Bluetooth: Controller: Force MD feature not supported in LOW LAT ULL 2022-04-04 10:24:19 +02:00