Bluetooth: Controller: Fix scan aux context leak
Fix scan aux context leak under BT_CTLR_SCAN_UNRESERVED. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
d573951f0d
commit
d36e085ecc
|
@ -632,6 +632,7 @@ static int is_abort_cb(void *next, void *curr, lll_prepare_cb_t *resume_cb)
|
||||||
|
|
||||||
static void abort_cb(struct lll_prepare_param *prepare_param, void *param)
|
static void abort_cb(struct lll_prepare_param *prepare_param, void *param)
|
||||||
{
|
{
|
||||||
|
struct event_done_extra *e;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
/* NOTE: This is not a prepare being cancelled */
|
/* NOTE: This is not a prepare being cancelled */
|
||||||
|
@ -651,6 +652,9 @@ static void abort_cb(struct lll_prepare_param *prepare_param, void *param)
|
||||||
err = lll_hfclock_off();
|
err = lll_hfclock_off();
|
||||||
LL_ASSERT(err >= 0);
|
LL_ASSERT(err >= 0);
|
||||||
|
|
||||||
|
e = ull_done_extra_type_set(EVENT_DONE_EXTRA_TYPE_SCAN_AUX);
|
||||||
|
LL_ASSERT(e);
|
||||||
|
|
||||||
lll_done(param);
|
lll_done(param);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue