Skip to content

Commit a81fc17

Browse files
cvinayakaescolar
authored andcommitted
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 <[email protected]>
1 parent 6b23acb commit a81fc17

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

subsys/bluetooth/controller/ll_sw/ull_adv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ u8_t ll_adv_enable(u8_t enable)
707707
#endif /* CONFIG_BT_PERIPHERAL */
708708

709709
#if defined(CONFIG_BT_CTLR_PRIVACY)
710-
adv->rl_idx = rl_idx;
710+
lll->rl_idx = rl_idx;
711711
#else
712712
ARG_UNUSED(rl_idx);
713713
#endif /* CONFIG_BT_CTLR_PRIVACY */

subsys/bluetooth/controller/ll_sw/ull_adv_types.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ struct ll_adv_set {
2525
#if defined(CONFIG_BT_CTLR_PRIVACY)
2626
u8_t own_addr_type:2;
2727
u8_t id_addr_type:1;
28-
u8_t rl_idx;
2928
u8_t id_addr[BDADDR_SIZE];
3029
#endif /* CONFIG_BT_CTLR_PRIVACY */
3130
};

0 commit comments

Comments
 (0)