Skip to content

Bluetooth: Convert SMP to use l2cap_chan

[email protected] linux-bluetooth 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Bluetooth: Add more L2CAP convenience callbacksinclude/net/bluetooth/l2cap.h+25 -00 replies
2/4Bluetooth: Add SMP L2CAP channel skeletoninclude/net/bluetooth/hci_core.h include/net/bluetooth/l2cap.h net/bluetooth/smp.c+132 -10 replies
3/4Bluetooth: Make AES crypto context private to SMPinclude/net/bluetooth/hci_core.h net/bluetooth/hci_core.c net/bluetooth/smp.c +1 more+32 -280 replies
4/4Bluetooth: Convert SMP to use l2cap_chan infrastructureinclude/net/bluetooth/l2cap.h net/bluetooth/l2cap_core.c net/bluetooth/smp.c +1 more+66 -680 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/4] Bluetooth: Convert SMP to use l2cap_chan

Hi,

With this patches we do the initial conversion of SMP to use l2cap_chan and its related callbacks. There are many more simplifications possible after this, but to keep the conversion minimal I haven't done those yet. To keep the code compiling and functional between each patch the code that introduces the initial callbacks uses a custom 0x1f CID not to intefere with the legacy SMP CID handling. Only in the last patch which adds fully functional SMP handling through l2cap_chan is this custom CID converted back to the proper L2CAP_CID_SMP.

Johan

----------------------------------------------------------------
Johan Hedberg (4):
Bluetooth: Add more L2CAP convenience callbacks
Bluetooth: Add SMP L2CAP channel skeleton
Bluetooth: Make AES crypto context private to SMP
Bluetooth: Convert SMP to use l2cap_chan infrastructure

 include/net/bluetooth/hci_core.h |   2 +-
 include/net/bluetooth/l2cap.h    |  27 +++-
 net/bluetooth/hci_core.c         |  13 +-
 net/bluetooth/l2cap_core.c       |  10 --
 net/bluetooth/smp.c              | 280 +++++++++++++++++++++++++++--------
 net/bluetooth/smp.h              |   6 +-
 6 files changed, 248 insertions(+), 90 deletions(-)