zephyr/drivers/bluetooth/controller
Vinayak Chettimada 1254ac51ef Bluetooth: Controller: Fix assert on advertise start
Using the shell application, starting advertisement while
the scanner is already running caused the controller to
assert.
The work which is supposed to set the radio active state to
active is not executed before the radio ISR resets the radio
active state, causing the assert. This can happen when a
newly started role is initialized to setup the radio trx and
the radio start code then detects that its hard realtime
instant has passed (as time was spent setting up the ticker
and ticker then firing thereafter) and hence cancels radio
trx.
Optionally (without this commit), dynamic calculation of
preparation time can be disabled by setting a constant time
in the define RADIO_TICKER_PREEMPT_PART_US in ctrl.c to
avoid the assert.

Change-id: Ib4415ec4b1bfdcc89aa0f3912e5a8fdd2e817fde
Signed-off-by: Vinayak Chettimada <vinayak.kariappa.chettimada@nordicsemi.no>
2016-09-07 08:17:26 +03:00
..
hal Bluetooth: Controller: Hardware abstraction layer for nRF5x radio 2016-09-07 08:17:26 +03:00
hci Bluetooth: Controller: Add initial HCI implementation 2016-09-07 08:17:26 +03:00
ll Bluetooth: Controller: Fix assert on advertise start 2016-09-07 08:17:26 +03:00
util Bluetooth: Controller: Fix coding style in ctrl.c, util/ and main.c 2016-09-07 08:17:26 +03:00
Kconfig Bluetooth: Controller: Hardware abstraction layer for nRF5x radio 2016-09-07 08:17:26 +03:00
main.c Bluetooth: Controller: Fix coding style, use of (void) 2016-09-07 08:17:26 +03:00
Makefile Bluetooth: Controller: Add BLE controller driver 2016-09-07 08:17:26 +03:00