mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-20 16:07:22 +00:00
nimble/ll: Fix rescheduling ADV PDU
It should be marked as enqueued if scheduled, otherwise we may not be able to remove scheduled item since ble_ll_sched_rmv_elem() check if element is marked as enqueued before even attempting to remove it.
This commit is contained in:
@@ -1050,6 +1050,7 @@ ble_ll_sched_adv_resched_pdu(struct ble_ll_sched_item *sch)
|
||||
}
|
||||
os_cputime_timer_stop(&g_ble_ll_sched_timer);
|
||||
TAILQ_INSERT_BEFORE(entry, sch, link);
|
||||
sch->enqueued = 1;
|
||||
}
|
||||
|
||||
OS_EXIT_CRITICAL(sr);
|
||||
|
||||
Reference in New Issue
Block a user