Return-Path: Subject: Re: >net-wireless/bluez-4.63 unable to connect audio streams due commit From: Pacho Ramos Reply-To: pacho@condmat1.ciencias.uniovi.es To: Johan Hedberg Cc: linux-bluetooth@vger.kernel.org In-Reply-To: <20100920184943.GA22968@jh-x301> References: <20100920184943.GA22968@jh-x301> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-vh/k2vttchoGwMXrWus5" Date: Sat, 02 Oct 2010 15:58:10 +0200 Message-ID: <1286027890.12944.1.camel@localhost.localdomain> Mime-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: --=-vh/k2vttchoGwMXrWus5 Content-Type: multipart/mixed; boundary="=-ugYqNiWa2xyQ01Tv82bJ" --=-ugYqNiWa2xyQ01Tv82bJ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El lun, 20-09-2010 a las 21:49 +0300, Johan Hedberg escribi=C3=B3: > Hi, >=20 > On Mon, Sep 20, 2010, Pacho Ramos wrote: > > Reporter found that the problem with his dongle was introduced in commi= t > > aee26b30bbc24cde464ba1a557c2b258ddec6432 "Make BtIO default security > > level MEDIUM", he asked here, on upstream mailing list, but didn't get > > any reply clarifying this: > > http://marc.info/?l=3Dlinux-bluetooth&m=3D127893935109510&w=3D2 >=20 > The important piece of info missing here is an HCI trace of the failure > (i.e. output of hcidump). There was a similar issue reported on IRC a > few days back and the hcidump there revealed a LMP response timeout > after BlueZ issues a HCI_Set_Connection_Encryption command. This would > seem to indicate a bug either in the local adapter or the remote device > (headset). Only an airtrace would really reveal what's going on. > However, I suspect it might be possible to work around this by looking > into possibilities of changing the ordering and timing of when the > kernel sends the encryption request. >=20 > Johan >=20 Sorry for the delay but downstream reporter wasn't able to provide the information sooner. Attached is hcidump output, I hope it helps :-) Thanks a lot --=-ugYqNiWa2xyQ01Tv82bJ Content-Disposition: attachment; filename="hcidump.out" Content-Transfer-Encoding: base64 Content-Type: text/plain; name="hcidump.out"; charset="UTF-8" SENJIHN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gZmVh dHVyZSBtYXNrIDB4MDAwMA0KPCBIQ0kgQ29tbWFuZDogQXV0aGVudGljYXRpb24gUmVxdWVzdGVk ICgweDAxfDB4MDAxMSkgcGxlbiAyDQo+IEhDSSBFdmVudDogUmVtb3RlIE5hbWUgUmVxIENvbXBs ZXRlICgweDA3KSBwbGVuIDI1NQ0KPiBIQ0kgRXZlbnQ6IENvbW1hbmQgU3RhdHVzICgweDBmKSBw bGVuIDQNCj4gSENJIEV2ZW50OiBBdXRoIENvbXBsZXRlICgweDA2KSBwbGVuIDMNCjwgSENJIENv bW1hbmQ6IFNldCBDb25uZWN0aW9uIEVuY3J5cHRpb24gKDB4MDF8MHgwMDEzKSBwbGVuIDMNCj4g SENJIEV2ZW50OiBDb21tYW5kIFN0YXR1cyAoMHgwZikgcGxlbiA0DQo+IEhDSSBFdmVudDogTnVt YmVyIG9mIENvbXBsZXRlZCBQYWNrZXRzICgweDEzKSBwbGVuIDUNCj4gSENJIEV2ZW50OiBEaXNj b25uIENvbXBsZXRlICgweDA1KSBwbGVuIDQNCjwgSENJIENvbW1hbmQ6IFJlc2V0ICgweDAzfDB4 MDAwMykgcGxlbiAwDQo+IEhDSSBFdmVudDogQ29tbWFuZCBDb21wbGV0ZSAoMHgwZSkgcGxlbiA0 DQo= --=-ugYqNiWa2xyQ01Tv82bJ-- --=-vh/k2vttchoGwMXrWus5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEABECAAYFAkynOnIACgkQCaWpQKGI+9SWNwCght5Auvay9zG+rOGa7ZcXSeGf HZ8AnjMzpPD4Lh2W91QL1+39qKpupqOT =5g85 -----END PGP SIGNATURE----- --=-vh/k2vttchoGwMXrWus5--