summaryrefslogtreecommitdiffstats
path: root/tools/hciattach_tialt.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/hciattach_tialt.c')
-rw-r--r--tools/hciattach_tialt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/hciattach_tialt.c b/tools/hciattach_tialt.c
index efeae3da..b3dee87e 100644
--- a/tools/hciattach_tialt.c
+++ b/tools/hciattach_tialt.c
@@ -46,6 +46,8 @@
#include <bluetooth/hci.h>
#include <bluetooth/hci_lib.h>
+#include "hciattach.h"
+
#define FAILIF(x, args...) do { \
if (x) { \
fprintf(stderr, ##args); \
@@ -61,8 +63,6 @@ typedef struct {
uint8_t data[16];
} __attribute__((packed)) command_complete_t;
-extern int read_hci_event(int fd, unsigned char* buf, int size);
-
static int read_command_complete(int fd, unsigned short opcode, unsigned char len) {
command_complete_t resp;
/* Read reply. */