Skip to content
Permalink
Browse files

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>
  • Loading branch information...
cvinayak authored and aescolar committed May 1, 2019
1 parent f4ff72b commit e2dbe4f6f35b4cbcdb66fa3fb72ebb1f82b16938
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit e2dbe4f

Please sign in to comment.
You can’t perform that action at this time.