Re: [PATCHv2] Bluetooth: Fix not sending link key negative reply

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Johan,

On Tue, May 07, 2013 at 02:14:36PM +0300, Johan Hedberg wrote:
> Hi Andrei,
> 
> On Tue, May 07, 2013, Andrei Emeltchenko wrote:
> > If Link Keys are not loaded during initialization with
> > MGMT_OP_LOAD_LINK_KEYS command then pairing always fails
> > since HCI_LINK_KEYS is not set. Check instead for HCI_MGMT
> > flag.
> > 
> > Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx>
> > ---
> > *v2 modified patch following Johan's comments
> 
> The existing behavior is intentional with the implicit assumption that a
> mgmt_load_link_keys will always be received, if only to set the debug
> keys flag in case of no link keys. 

There is a valid case that there is no bonded devices and we leave default
debug flags. In that case pairing always fails.

For example I need to execute "dummy link keys loading" just to be able to pair.

Best regards 
Andrei Emeltchenko 

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux