From ed7e9028139e4c3d2a7deb98ccc5400cd6fc41c4 Mon Sep 17 00:00:00 2001 From: Vinayak Kariappa Chettimada Date: Mon, 18 Oct 2021 04:07:17 +0530 Subject: [PATCH] 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 190532bcc4d5 ("Bluetooth: Controller: Only remove duplicate resume events"). Signed-off-by: Vinayak Kariappa Chettimada --- subsys/bluetooth/controller/ll_sw/nordic/lll/lll.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/subsys/bluetooth/controller/ll_sw/nordic/lll/lll.c b/subsys/bluetooth/controller/ll_sw/nordic/lll/lll.c index 2827a1a15e6..9a4c053f506 100644 --- a/subsys/bluetooth/controller/ll_sw/nordic/lll/lll.c +++ b/subsys/bluetooth/controller/ll_sw/nordic/lll/lll.c @@ -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);