From: "andrzej zaborowski" <balrogg@gmail.com>
To: Dmitry Baryshkov <dbaryshkov@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: bt-hci-csr problem
Date: Wed, 12 Nov 2008 00:55:24 +0100 [thread overview]
Message-ID: <fb249edb0811111555v373d8ac0l73ab7cd63d4b24a3@mail.gmail.com> (raw)
In-Reply-To: <20081111224259.GA6240@doriath.ww600.siemens.net>
Hi,
2008/11/11 Dmitry Baryshkov <dbaryshkov@gmail.com>:
> When trying to add support for bt-hci-csr to tosa I stumbled upon a
> problem. hciattach always displayed "timed out" error. After short
> debugging I narrowed it to the following problem:
>
> The first packet that hciattach was sending is:
> 0x01, 0x00, 0xfc, 0x17,
> 0xc2, 0x00, 0x00, 0x09,
> 0x00, 0x00, 0x00, 0x19,
> 0x28, 0x00, 0x00, 0x00,
> 0x00, 0x00, 0x00, 0x00,
> 0x00, 0x00, 0x00, 0x00,
> 0x00, 0x00, 0x00,
>
> At first glance it's perfectly valid. However csrhci_data_len() function
> adds 1 to the length of this packet and thus does not detect the end of
> the packet correctly.
>
> Most probably we should be more precise in selecting which commands have
> incorrect length, shouldn't we? Or is that a problem with my hciattach?
I suppose probably your device has a standard serial HCI? The
bt-hci-csr is some Broadcom CSR chip which is not standard because it
aligns frame sizes to multiples of 2, so it uses a non-standard driver
in the n800 linux.
As far as I'm concerned the only differences are this frame size
alignment and the presence of vendor specific commands for firmware
upload. If you remove these two things you should get a standard
serial dongle (if I can suggest a name, I'd call it bt-hci-uart.c).
Cheers
prev parent reply other threads:[~2008-11-11 23:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-11 22:42 [Qemu-devel] bt-hci-csr problem Dmitry Baryshkov
2008-11-11 23:55 ` andrzej zaborowski [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=fb249edb0811111555v373d8ac0l73ab7cd63d4b24a3@mail.gmail.com \
--to=balrogg@gmail.com \
--cc=dbaryshkov@gmail.com \
--cc=qemu-devel@nongnu.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).