linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tools/hciattach: TI: Increase the HCI request timeout value
@ 2019-02-26 13:15 arnaud.mouiche
  0 siblings, 0 replies; only message in thread
From: arnaud.mouiche @ 2019-02-26 13:15 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Arnaud Mouiche

From: Arnaud Mouiche <arnaud.mouiche@invoxia.com>

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-02-26 13:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-26 13:15 [PATCH] tools/hciattach: TI: Increase the HCI request timeout value arnaud.mouiche

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).