Bluetooth: controller: Fix incorrect conditional compilation

Fix incorrect conditional compilation that caused compile
error when lll_scan structure did not contain connection
context included which is needed only for central role.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2019-05-01 15:14:12 +05:30 committed by Alberto Escolar
commit e2dbe4f6f3

View file

@ -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;
}