Skip to content

Commit

Permalink
Bluetooth: controller: Fix incorrect conditional compilation
Browse files Browse the repository at this point in the history
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 6, 2019
1 parent f4ff72b commit e2dbe4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/bluetooth/controller/ll_sw/ull_scan.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ static u8_t disable(u16_t handle)
return BT_HCI_ERR_CMD_DISALLOWED; return BT_HCI_ERR_CMD_DISALLOWED;
} }


#if defined(CONFIG_BT_CONN) #if defined(CONFIG_BT_CENTRAL)
if (scan->lll.conn) { if (scan->lll.conn) {
return BT_HCI_ERR_CMD_DISALLOWED; return BT_HCI_ERR_CMD_DISALLOWED;
} }
Expand Down

0 comments on commit e2dbe4f

Please sign in to comment.