From def2d7cf4e8988b285166a0db16a73a015d2d01f Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Wed, 2 Dec 2020 16:51:10 +0100 Subject: [PATCH] Bluetooth: controller: Fix reset with ext adv enabled We need to make sure aux is cleared on reset, otherwise we may end up with legacy advertising with aux. Signed-off-by: Andrzej Kaczmarek --- subsys/bluetooth/controller/ll_sw/ull_adv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subsys/bluetooth/controller/ll_sw/ull_adv.c b/subsys/bluetooth/controller/ll_sw/ull_adv.c index 51457f994d5..3a21d4b27ac 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_adv.c +++ b/subsys/bluetooth/controller/ll_sw/ull_adv.c @@ -1419,6 +1419,7 @@ int ull_adv_reset_finalize(void) #if defined(CONFIG_BT_CTLR_ADV_EXT) adv->is_created = 0; + lll->aux = NULL; #endif lll_adv_data_reset(&lll->adv_data); lll_adv_data_reset(&lll->scan_rsp);