Bluetooth: controller: Fix build without BT_CENTRAL
lll->conn is only defined valid when BT_CENTRAL is enabled. Also ull_sched_mfy_after_mstr_offset_get is only used when BT_CENTRAL is enabled. Signed-off-by: Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
This commit is contained in:
parent
7e302979f3
commit
04a48d9ec2
2 changed files with 4 additions and 0 deletions
|
@ -4,4 +4,6 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#if defined(CONFIG_BT_CENTRAL)
|
||||
extern void ull_sched_mfy_after_mstr_offset_get(void *param);
|
||||
#endif
|
||||
|
|
|
@ -142,6 +142,7 @@ void ull_sched_after_mstr_slot_get(uint8_t user_id, uint32_t ticks_slot_abs,
|
|||
}
|
||||
}
|
||||
|
||||
#if defined(CONFIG_BT_CENTRAL)
|
||||
void ull_sched_mfy_after_mstr_offset_get(void *param)
|
||||
{
|
||||
struct lll_prepare_param *p = param;
|
||||
|
@ -160,6 +161,7 @@ void ull_sched_mfy_after_mstr_offset_get(void *param)
|
|||
(ticks_slot_overhead + conn_evt->ticks_slot),
|
||||
p->ticks_at_expire, &lll->conn_win_offset_us);
|
||||
}
|
||||
#endif /* CONFIG_BT_CENTRAL */
|
||||
|
||||
void ull_sched_mfy_win_offset_use(void *param)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue