From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] Immediate disconnect after doing "hcitool cc"
Date: Mon, 18 Dec 2006 10:36:59 +0100 [thread overview]
Message-ID: <1166434619.6557.55.camel@aeonflux.holtmann.net> (raw)
In-Reply-To: <020201c7227a$94e3a590$9301a8c0@LUBI>
Hi,
> Is there more information available how the kernel creates an ACL
> connection? I have been reading source code for 2.6.13-15 but not seen
> anything about creating an ACL connection yet. Well, I am quite unfamiliar
> with the kernel source code.
>
> I have re-written some parts of hcitool so that it uses clock_offset and
> pscan_repetition_mode when ACL-connecting. Is kernel code more optimised
> that this?
>
> Q2: Any ideas for a good way to time kernel creating the ACL connection? So
> that to compare with a "hacked" hcitool.
this is all the wrong approach. Create a L2CAP or RFCOMM connection and
the kernel will create any needed ACL link for you. Don't try to think
to complicate. If you try to mess around with connection reference
counting of the ACL the kernel will always win and simply disconnect the
link if it thinks it is no longer needed. Messing around directly with
HCI is never a good idea.
Regards
Marcel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2006-12-18 9:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-14 6:13 [Bluez-devel] Immediate disconnect after doing "hcitool cc" Jon Barnett
2006-12-14 9:25 ` amateur
2006-12-15 2:05 ` Jon Barnett
2006-12-17 12:43 ` Marcel Holtmann
2006-12-17 17:37 ` Jon Barnett
2006-12-18 8:00 ` Lauri Lubi
2006-12-18 9:36 ` Marcel Holtmann [this message]
2006-12-18 9:52 ` Lauri Lubi
2006-12-18 11:55 ` Marcel Holtmann
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=1166434619.6557.55.camel@aeonflux.holtmann.net \
--to=marcel@holtmann.org \
--cc=bluez-devel@lists.sourceforge.net \
/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