@@ -665,6 +665,7 @@ static void le_set_scan_enable(struct net_buf *buf, struct net_buf **evt)
665665}
666666#endif /* CONFIG_BLUETOOTH_CONTROLLER_STATE_SCAN */
667667
668+ #if defined(CONFIG_BLUETOOTH_CONN )
668669#if defined(CONFIG_BLUETOOTH_CENTRAL )
669670static void le_create_connection (struct net_buf * buf , struct net_buf * * evt )
670671{
@@ -891,6 +892,7 @@ static void le_read_max_data_len(struct net_buf *buf, struct net_buf **evt)
891892 rp -> status = 0x00 ;
892893}
893894#endif /* CONFIG_BLUETOOTH_CONTROLLER_DATA_LENGTH */
895+ #endif /* CONFIG_BLUETOOTH_CONN */
894896
895897static int controller_cmd_handle (u8_t ocf , struct net_buf * cmd ,
896898 struct net_buf * * evt )
@@ -972,6 +974,7 @@ static int controller_cmd_handle(u8_t ocf, struct net_buf *cmd,
972974 break ;
973975#endif /* CONFIG_BLUETOOTH_CONTROLLER_STATE_SCAN */
974976
977+ #if defined(CONFIG_BLUETOOTH_CONN )
975978#if defined(CONFIG_BLUETOOTH_CENTRAL )
976979 case BT_OCF (BT_HCI_OP_LE_CREATE_CONN ):
977980 le_create_connection (cmd , evt );
@@ -1033,6 +1036,7 @@ static int controller_cmd_handle(u8_t ocf, struct net_buf *cmd,
10331036 le_read_max_data_len (cmd , evt );
10341037 break ;
10351038#endif /* CONFIG_BLUETOOTH_CONTROLLER_DATA_LENGTH */
1039+ #endif /* CONFIG_BLUETOOTH_CONN */
10361040
10371041 default :
10381042 return - EINVAL ;
0 commit comments