diff --git a/subsys/bluetooth/controller/ll_sw/ull_scan.c b/subsys/bluetooth/controller/ll_sw/ull_scan.c index 65db6d16193..f17750c48ea 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_scan.c +++ b/subsys/bluetooth/controller/ll_sw/ull_scan.c @@ -418,7 +418,7 @@ static u8_t disable(u16_t handle) return BT_HCI_ERR_CMD_DISALLOWED; } -#if defined(CONFIG_BT_CONN) +#if defined(CONFIG_BT_CENTRAL) if (scan->lll.conn) { return BT_HCI_ERR_CMD_DISALLOWED; }