public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: Vlad <vkorolev@nist.gov>
Cc: BlueZ Mailing List <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] Re: Disconnections are not being detected.
Date: Fri, 27 Aug 2004 13:33:20 +0200	[thread overview]
Message-ID: <1093606399.2581.101.camel@pegasus> (raw)
In-Reply-To: <loom.20040827T021529-764@post.gmane.org>

Hi Vlad,

> But the official L2CAP specification.  (Version 1.1) says (page 288):
> 
> 	Result: 2 octets The result field indicates the outcome of
> 	the connection request. The result value of 0x0000 indicates
> 	success while a non-zero value indicates the connection request
> 	failed or is pending. A logical channel is established on the
> 	receipt of a successful result. Table 5.5 defines values for
> 	this field. If the result field is not zero. The DCID and SCID
> 	fields should be ignored when the result field indicates the
> 	connection was refused.
> 
> So although the BlueZ behavior is correct from common sense perspective,
> but it is not correct from the specification perspective. I am not sure
> what does version 1.2 of the spec say about this subject.

it is still the same for the 1.2 specification, but it is simply wrong
and stupid. You need at least the SCID to match the connect response to
a previous connect request. Otherwise this response is meaningless.

What we did wrong is sending the command reject for a response. I will
fix this, but this won't fix your problem. If we don't know for what
L2CAP channel we get a connection refused response, we can't do anything
else then waiting for a timeout event.

Check the bluetooth.org pages if they had an erratum for that and if not
ping them to correct it. Also write to SE about that.

Regards

Marcel




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

  reply	other threads:[~2004-08-27 11:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-20 18:47 [Bluez-devel] Disconnections are not being detected Vlad
2004-08-21  7:28 ` Marcel Holtmann
2004-08-21  8:02   ` Xavier GARREAU
2004-08-21 10:10     ` Marcel Holtmann
2004-08-27  0:17       ` [Bluez-devel] " Vlad
2004-08-27 11:33         ` Marcel Holtmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-12-16 10:43 andi.c
2004-12-16 11:10 ` 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=1093606399.2581.101.camel@pegasus \
    --to=marcel@holtmann.org \
    --cc=bluez-devel@lists.sourceforge.net \
    --cc=vkorolev@nist.gov \
    /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