summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-07-11 02:31:48 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-07-11 02:31:48 +0000
commite0c96954340a6ccb8f40bb7106f8208484fa8599 (patch)
treeb616c6d048f228d8acf6b0c950020eb06801f1a6 /tools
parent06e4d41372a9f005b05cc2f4a09924f18bf6f6d7 (diff)
Set input speed and the LL protocol identifier
Diffstat (limited to 'tools')
-rw-r--r--tools/hciattach.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/hciattach.c b/tools/hciattach.c
index 0210519e..7f699d92 100644
--- a/tools/hciattach.c
+++ b/tools/hciattach.c
@@ -42,6 +42,7 @@
#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
+#include <sys/uio.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
@@ -59,6 +60,7 @@
#define HCI_UART_BCSP 1
#define HCI_UART_3WIRE 2
#define HCI_UART_H4DS 3
+#define HCI_UART_LL 4
struct uart_t {
char *type;
@@ -146,6 +148,7 @@ static int uart_speed(int s)
static int set_speed(int fd, struct termios *ti, int speed)
{
cfsetospeed(ti, uart_speed(speed));
+ cfsetispeed(ti, uart_speed(speed));
return tcsetattr(fd, TCSANOW, ti);
}