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 <andrzej.kaczmarek@codecoup.pl>
This commit is contained in:
Andrzej Kaczmarek 2020-12-02 16:51:10 +01:00 committed by Carles Cufí
commit def2d7cf4e

View file

@ -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);