mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-13 04:55:22 +00:00
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> |
||
---|---|---|
.. | ||
bluetooth | ||
defs.objs |