From a81fc17bb2d1d5182e418bdaea2d12d9013a215d Mon Sep 17 00:00:00 2001 From: Vinayak Kariappa Chettimada Date: Fri, 7 Feb 2020 00:03:16 +0530 Subject: [PATCH] Bluetooth: controller: split: Fix uninitialized advertiser rl_idx Fix uninitialized advertiser rl_idx used to check own identity in CONNECT_IND received for directed advertisements. Signed-off-by: Vinayak Kariappa Chettimada --- subsys/bluetooth/controller/ll_sw/ull_adv.c | 2 +- subsys/bluetooth/controller/ll_sw/ull_adv_types.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/subsys/bluetooth/controller/ll_sw/ull_adv.c b/subsys/bluetooth/controller/ll_sw/ull_adv.c index 6f78a7ab8d0..17850d11967 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_adv.c +++ b/subsys/bluetooth/controller/ll_sw/ull_adv.c @@ -707,7 +707,7 @@ u8_t ll_adv_enable(u8_t enable) #endif /* CONFIG_BT_PERIPHERAL */ #if defined(CONFIG_BT_CTLR_PRIVACY) - adv->rl_idx = rl_idx; + lll->rl_idx = rl_idx; #else ARG_UNUSED(rl_idx); #endif /* CONFIG_BT_CTLR_PRIVACY */ diff --git a/subsys/bluetooth/controller/ll_sw/ull_adv_types.h b/subsys/bluetooth/controller/ll_sw/ull_adv_types.h index d247d763841..bfd396428ce 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_adv_types.h +++ b/subsys/bluetooth/controller/ll_sw/ull_adv_types.h @@ -25,7 +25,6 @@ struct ll_adv_set { #if defined(CONFIG_BT_CTLR_PRIVACY) u8_t own_addr_type:2; u8_t id_addr_type:1; - u8_t rl_idx; u8_t id_addr[BDADDR_SIZE]; #endif /* CONFIG_BT_CTLR_PRIVACY */ };