Bluetooth: Controller: Fix skipped Extended Scanning

Fix continuous skipping of Extended Scanning of Auxiliary
PDUs. Due to duplicate prepare events of continuous scanning
present before the auxiliary scanning prepare, preemption
schedules only the primary scan prepare and auxiliary scan
infinitely is postponed.

This is a revert of commit 190532bcc4 ("Bluetooth:
Controller: Only remove duplicate resume events").

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2021-10-18 04:07:17 +05:30 committed by Carles Cufí
parent 333c23beec
commit ed7e902813
1 changed files with 1 additions and 2 deletions

View File

@ -943,8 +943,7 @@ static void preempt(void *param)
iter = ull_prepare_dequeue_iter(&iter_idx);
while (iter) {
if (!iter->is_aborted &&
(event.curr.param == iter->prepare_param.param) &&
iter->is_resume) {
event.curr.param == iter->prepare_param.param) {
iter->is_aborted = 1;
iter->abort_cb(&iter->prepare_param,
iter->prepare_param.param);