From: Frederic Danis <frederic.danis@linux.intel.com>
To: linux-bluetooth@vger.kernel.org
Subject: [RFC 3/3] btattach: Increase timeout for raw user channel creation
Date: Thu, 2 Apr 2015 16:38:03 +0200 [thread overview]
Message-ID: <1427985483-31580-4-git-send-email-frederic.danis@linux.intel.com> (raw)
In-Reply-To: <1427985483-31580-1-git-send-email-frederic.danis@linux.intel.com>
As Bluetooth controller initialization is now performed in kernel, it can
take longer time to get user channel socket.
So move timeout from 1.5 seconds to 6 seconds.
---
tools/btattach.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/btattach.c b/tools/btattach.c
index d97429e..8fc5868 100644
--- a/tools/btattach.c
+++ b/tools/btattach.c
@@ -153,7 +153,7 @@ static int attach_proto(const char *path, unsigned int proto,
printf("Device index %d attached\n", dev_id);
if (flags & (1 << HCI_UART_RAW_DEVICE)) {
- unsigned int attempts = 6;
+ unsigned int attempts = 24;
struct bt_hci *hci;
while (attempts-- > 0) {
--
1.9.1
prev parent reply other threads:[~2015-04-02 14:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-02 14:38 [RFC 0/3] btattach: Use HCI UART vendor specific setup kernel calls Frederic Danis
2015-04-02 14:38 ` [RFC 1/3] btattach: Add SetDevType ioctl call Frederic Danis
2015-04-02 15:18 ` Marcel Holtmann
2015-04-02 14:38 ` [RFC 2/3] btattach: Add SetBaudRate " Frederic Danis
2015-04-02 14:38 ` Frederic Danis [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1427985483-31580-4-git-send-email-frederic.danis@linux.intel.com \
--to=frederic.danis@linux.intel.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).