Skip to content

Conversation

@cvinayak
Copy link
Contributor

@cvinayak cvinayak commented Feb 22, 2025

Fix active mode extended scanning assert raised when calling radio_tmr_start_us() due to stale radio_tmr_end_get() value. Active mode extended scanning did not drop reception of ADV_EXT_IND PDU when setup to receive ADV_SCAN_RSP PDUs.

Fix use of single timer software tIFS switching to support direction finding.

Listed in #82399.

ASSERTION FAIL [start_us == (aux_start_us + 1U)] @ WEST_TOPDIR/zephyr/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_scan_aux.c:358
Reproduced using sample: samples/bluetooth/observer with extended scanning of extended advertising with/without chains
Possible analysis: Active mode extended scanning assert raised when calling radio_tmr_start_us() due to stale radio_tmr_end_get() value. Active mode extended scanning did not drop reception of ADV_EXT_IND PDU when setup to receive ADV_SCAN_RSP PDUs.

@cvinayak cvinayak force-pushed the github_single_timer_df_fix branch 4 times, most recently from 6fc0e2b to 870ffdc Compare February 25, 2025 05:04
Fix active mode extended scanning assert raised when calling
radio_tmr_start_us() due to stale radio_tmr_end_get() value.
Active mode extended scanning did not drop reception of
ADV_EXT_IND PDU when setup to receive ADV_SCAN_RSP PDUs.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
Fix single timer use end time capture from being disabled
as end time and timer clear use the same PPI.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
Fix end time capture be on radio event end irrespective of
direction finding support. Let the timer clear use radio
end or radio phy end, for no direction finding or direction
finding support, respectively.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
Rename the single timer clear event define name based on
direction finding support.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
Fix use of single timer software tIFS switching to support
direction finding.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
Comment on lines +92 to +93
nrf_radio_publish_set(NRF_RADIO, HAL_NRF_RADIO_EVENT_END,
HAL_RADIO_END_TIME_CAPTURE_PPI);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This indentation change is intentional so that this file is included in the same commit as the fix in the radio_nrf5_ppi.h for single timer support. Both use of PPI and DPPI shall use the Radio END event to capture the last bit in the PDU.

@cvinayak cvinayak added bug The issue is a bug, or the PR is fixing a bug backport v3.7-branch Request backport to the v3.7-branch backport v4.0-branch Backport to the v4.0-branch labels Feb 26, 2025
@cvinayak cvinayak requested a review from Thalley February 26, 2025 04:14
@cvinayak cvinayak added this to the v4.1.0 milestone Feb 26, 2025
@cvinayak cvinayak changed the title Bluetooth: Controller: Fix single timer direction finding support Bluetooth: Controller: Fix extended scanning assertion and fix single timer direction finding support Feb 27, 2025
@kartben kartben merged commit ec69ccb into zephyrproject-rtos:main Feb 28, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Bluetooth Controller area: Bluetooth backport v3.7-branch Request backport to the v3.7-branch backport v4.0-branch Backport to the v4.0-branch bug The issue is a bug, or the PR is fixing a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants