Return-Path: MIME-Version: 1.0 In-Reply-To: <1341403768-16709-1-git-send-email-luiz.dentz@gmail.com> References: <1341403768-16709-1-git-send-email-luiz.dentz@gmail.com> Date: Wed, 4 Jul 2012 11:16:15 -0300 Message-ID: Subject: Re: [RFC BlueZ] core: Fix not waiting for discovery to stop before attempting to pair From: Joao Paulo Rechi Vita To: Luiz Augusto von Dentz Cc: linux-bluetooth@vger.kernel.org, Claudio Takahasi Content-Type: text/plain; charset=UTF-8 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hello Luiz, On Wed, Jul 4, 2012 at 9:09 AM, Luiz Augusto von Dentz wrote: > From: Luiz Augusto von Dentz > > In some cases, LE controllers, this can cause errors due to scan/inquiry > being active. > > To fix this instead of immediately attempting to pair wait until > discovery is properly stopped and only then proceed with bonding. > --- > Still RFC because I could only test against controllers that used to > work without this patch. > Claudio and I are currently working to support the General Connection Procedure for LE connections, which will serialize the discovery and LE connect commands. In other words, only one connect or discovery command will be sent to the kernel at a given time. We'll probably send an RFC on this code this week. -- João Paulo Rechi Vita Openbossa Labs - INdT