linux/include/net/bluetooth
Johan Hedberg 98a0b845c6 Bluetooth: Fix differentiating stored master vs slave LTK types
If LTK distribution happens in both directions we will have two LTKs for
the same remote device: one which is used when we're connecting as
master and another when we're connecting as slave. When looking up LTKs
from the locally stored list we shouldn't blindly return the first match
but also consider which type of key is in question. If we do not do this
we may end up selecting an incorrect encryption key for a connection.

This patch fixes the issue by always specifying to the LTK lookup
functions whether we're looking for a master or a slave key.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2014-02-13 09:51:41 +02:00
..
bluetooth.h Bluetooth: Introduce requirements for security level 4 2014-02-13 09:51:35 +02:00
hci_core.h Bluetooth: Fix differentiating stored master vs slave LTK types 2014-02-13 09:51:41 +02:00
hci_mon.h Bluetooth: Fix coding style in all .h files 2012-03-07 00:04:25 -03:00
hci.h Bluetooth: Add debugfs entry to show Secure Connections Only mode 2014-02-13 09:51:35 +02:00
l2cap.h Bluetooth: Rename L2CAP_CHAN_CONN_FIX_A2MP to L2CAP_CHAN_FIXED 2014-02-13 09:51:37 +02:00
mgmt.h Bluetooth: Add support for remote OOB input of P-256 data 2014-02-13 09:51:34 +02:00
rfcomm.h Bluetooth: Handle security level 4 for RFCOMM connections 2014-02-13 09:51:35 +02:00
sco.h Bluetooth: Store SCO address information in its own socket structure 2013-10-13 21:11:20 +03:00