2019-02-26 13:15:51

by Arnaud Mouiche

[permalink] [raw]
Subject: [PATCH] tools/hciattach: TI: Increase the HCI request timeout value

From: Arnaud Mouiche <[email protected]>

When playing with a TI CC2564c module linked to a RaspberryPI with a
FTDI UART/USB adapter, the 15ms timeout is not sufficient.
---
tools/hciattach_ti.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/hciattach_ti.c b/tools/hciattach_ti.c
index 1838394..cb97b06 100644
--- a/tools/hciattach_ti.c
+++ b/tools/hciattach_ti.c
@@ -254,7 +254,7 @@ static int brf_send_command_socket(int fd, struct bts_action_send *send_action)
rq.rparam = response;
rq.rlen = sizeof(response);

- if (hci_send_req(fd, &rq, 15) < 0) {
+ if (hci_send_req(fd, &rq, 100) < 0) {
perror("Cannot send hci command to socket");
return -1;
}
--
2.7.4