Skip to content

Commit

Permalink
Bluetooth: controller: Fix cond. compilation for broadcaster
Browse files Browse the repository at this point in the history
Fix conditional compilation for extended advertising
without peripheral support.

This fixes missing initialization of buffer for generating
advertising terminate event.

Fixes #28325.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
  • Loading branch information
cvinayak authored and carlescufi committed Sep 18, 2020
1 parent 332b7df commit 17c4396
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions subsys/bluetooth/controller/ll_sw/ull_adv.c
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@ uint8_t ll_adv_enable(uint8_t enable)
return BT_HCI_ERR_HW_FAILURE;
}
}
#endif /* CONFIG_BT_PERIPHERAL */

#if defined(CONFIG_BT_CTLR_ADV_EXT)
if (ll_adv_cmds_is_ext()) {
Expand Down Expand Up @@ -932,10 +933,7 @@ uint8_t ll_adv_enable(uint8_t enable)
node_rx_adv_term->hdr.link = (void *)link_adv_term;
adv->lll.node_rx_adv_term = (void *)node_rx_adv_term;
}
#endif /* CONFIG_BT_CTLR_ADV_EXT */
#endif /* CONFIG_BT_PERIPHERAL */

#if defined(CONFIG_BT_CTLR_ADV_EXT)
const uint8_t phy = lll->phy_p;

adv->event_counter = 0;
Expand Down

0 comments on commit 17c4396

Please sign in to comment.