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:
parent
f4ff72bbd3
commit
e2dbe4f6f3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue