From e0c96954340a6ccb8f40bb7106f8208484fa8599 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 11 Jul 2008 02:31:48 +0000 Subject: Set input speed and the LL protocol identifier --- tools/hciattach.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools') 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 #include #include +#include #include #include @@ -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); } -- cgit