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(-) -- 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