From: Matthieu CASTET <matthieu.castet@parrot.com>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: btusb and HCI_RAW
Date: Thu, 27 Nov 2008 18:02:22 +0100 [thread overview]
Message-ID: <492ED29E.1060702@parrot.com> (raw)
In-Reply-To: <F9029075-34B5-4DE1-98EA-E990C82C7495@holtmann.org>
Hi Marcel,
Marcel Holtmann a écrit :
> Hi Matthieu,
>
>> with HCI_RAW, application can bypass the bluez stack and send raw stuff
>> to dongle.
>>
>> This seems not possible anymore with btusb because it uses
>> "hdev->conn_hash" to check if ACLDATA/SCODATA should be send/received.
>>
>> These checks make the HCI_RAW mode a bit useless (ie not working for acl
>> and sco).
>>
>> Can we make the HCI_RAW work like before with acl and sco data ?
>> For example we can ignore theses check in HCI_RAW mode and send a notify
>> event when we turn on/off HCI_RAW mode.
>
> we could, but that will cost a lot of CPU power. The SCO data packets
> are just not an option here. Also without a full blown Bluetooth stack,
> you don't know with alternate setting to use.
But hci_usb wasn't doing that (ie always use max alternate setting +
submit sco/alc urb), and I wasn't under the impression that it costs too
much CPU power.
> So this is a little bit
> pointless here and before just worked by pure luck. Why do you want this
> support in the first place?
>
This can be helpful to test userspace bluetooth stack or do some fuzzing.
What is the goal of HCI_RAW ?
With btusb it seems useless in the tx path.
Matthieu
next prev parent reply other threads:[~2008-11-27 17:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-10 17:01 btusb and HCI_RAW Matthieu CASTET
2008-11-24 2:57 ` Marcel Holtmann
2008-11-27 17:02 ` Matthieu CASTET [this message]
2008-11-27 19:08 ` Marcel Holtmann
2008-11-28 9:13 ` Matthieu CASTET
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=492ED29E.1060702@parrot.com \
--to=matthieu.castet@parrot.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcel@holtmann.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