Skip to content

Bluetooth: Add dedicated SMP (de)initialization functions

[email protected] linux-bluetooth 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Bluetooth: Fix hci_update_random_address() error return for no cryptonet/bluetooth/hci_core.c+6 -00 replies
2/5Bluetooth: Fix IRK lookup when tfm_aes is not availablenet/bluetooth/hci_core.c+3 -00 replies
3/5Bluetooth: Refactor SMP (de)initialization into separate functionsnet/bluetooth/hci_core.c+34 -120 replies
4/5Bluetooth: Move SMP initialization after HCI initnet/bluetooth/hci_core.c+3 -70 replies
5/5Bluetooth: Move SMP (de)initialization to smp.cnet/bluetooth/hci_core.c net/bluetooth/smp.c net/bluetooth/smp.h+31 -300 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Bluetooth: Add dedicated SMP (de)initialization functions

Hi,

For us to have a clean way to create the root (per-adapter) SMP L2CAP channel it's best to move the code responsible for this to specialized functions in smp.c. For now this only involves the AES crypto context creation and destruction.

Johan

----------------------------------------------------------------
Johan Hedberg (5):
Bluetooth: Fix hci_update_random_address() error return for no crypto
Bluetooth: Fix IRK lookup when tfm_aes is not available
Bluetooth: Refactor SMP (de)initialization into separate functions
Bluetooth: Move SMP initialization after HCI init
Bluetooth: Move SMP (de)initialization to smp.c

 net/bluetooth/hci_core.c | 27 +++++++++++++--------------
 net/bluetooth/smp.c      | 26 ++++++++++++++++++++++++++
 net/bluetooth/smp.h      |  3 +++
 3 files changed, 42 insertions(+), 14 deletions(-)