zephyr/net/bluetooth
Johan Hedberg 544cb1433c Bluetooth: SMP: Add Encryption Key distribution support
Add support for distributing our LTK to the remote side. Normally we
would generate the needed random bytes when the connection becomes
encrypted, however using bt_hci_cmd_send_sync() from a HCI event
handler (which the encryption_change is) is not possible and will
deadlock (because it needs to wait for a HCI command of its own to
complete). Instead, pre-generate the LTK as part of the SMP context
when we receive the SMP Random PDU from the remote.

Change-Id: Id9cc34b7ddfd1804626cf8bdc81c25aa8cc7943c
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2016-02-05 20:14:03 -05:00
..
att.c Bluetooth: Fix coding style (missing braces) 2016-02-05 20:14:03 -05:00
att.h
buf.c
conn.c
conn.h
hci_core.c Bluetooth: Store full LTK information 2016-02-05 20:14:03 -05:00
hci_core.h Bluetooth: Store full LTK information 2016-02-05 20:14:03 -05:00
l2cap.c
l2cap.h
smp.c Bluetooth: SMP: Add Encryption Key distribution support 2016-02-05 20:14:03 -05:00
smp.h Bluetooth: SMP: Add more protocol defines 2016-02-05 20:14:03 -05:00