diff --git a/subsys/bluetooth/controller/hci/hci.c b/subsys/bluetooth/controller/hci/hci.c index d11df05428503a8..92f1456bff4b97e 100644 --- a/subsys/bluetooth/controller/hci/hci.c +++ b/subsys/bluetooth/controller/hci/hci.c @@ -3499,7 +3499,6 @@ static void le_set_ext_adv_enable(struct net_buf *buf, struct net_buf **evt) struct bt_hci_cp_le_set_ext_adv_enable *cmd = (void *)buf->data; struct bt_hci_ext_adv_set *s; uint8_t set_num; - uint8_t enable; uint8_t status; uint8_t handle; @@ -3522,7 +3521,6 @@ static void le_set_ext_adv_enable(struct net_buf *buf, struct net_buf **evt) } s = (void *) cmd->s; - enable = cmd->enable; do { status = ll_adv_set_by_hci_handle_get(s->handle, &handle); if (status) { diff --git a/subsys/bluetooth/controller/ll_sw/ull_scan_aux.c b/subsys/bluetooth/controller/ll_sw/ull_scan_aux.c index e0dd0c5d0d2a344..057d25a3b53527e 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_scan_aux.c +++ b/subsys/bluetooth/controller/ll_sw/ull_scan_aux.c @@ -50,8 +50,10 @@ static inline struct ll_scan_aux_set *aux_acquire(void); static inline void aux_release(struct ll_scan_aux_set *aux); static inline uint8_t aux_handle_get(struct ll_scan_aux_set *aux); static inline struct ll_sync_set *sync_create_get(struct ll_scan_set *scan); +#if defined(CONFIG_BT_CTLR_SYNC_PERIODIC) static inline struct ll_sync_iso_set * sync_iso_create_get(struct ll_sync_set *sync); +#endif /* CONFIG_BT_CTLR_SYNC_PERIODIC */ static void done_disabled_cb(void *param); static void flush_safe(void *param); static void flush(void *param); @@ -1082,6 +1084,7 @@ static inline struct ll_sync_set *sync_create_get(struct ll_scan_set *scan) #endif /* !CONFIG_BT_CTLR_SYNC_PERIODIC */ } +#if defined(CONFIG_BT_CTLR_SYNC_PERIODIC) static inline struct ll_sync_iso_set * sync_iso_create_get(struct ll_sync_set *sync) { @@ -1091,6 +1094,7 @@ static inline struct ll_sync_iso_set * return NULL; #endif /* !CONFIG_BT_CTLR_SYNC_ISO */ } +#endif /* CONFIG_BT_CTLR_SYNC_PERIODIC */ static void done_disabled_cb(void *param) {