Skip to content

Some more SMP fixes

[email protected] linux-bluetooth 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Bluetooth: Use L2CAP resume callback to call smp_distribute_keysnet/bluetooth/l2cap_core.c net/bluetooth/smp.c net/bluetooth/smp.h+196 -1910 replies
2/3Bluetooth: Add public l2cap_conn_drop() API to request disconnectioninclude/net/bluetooth/l2cap.h net/bluetooth/l2cap_core.c+29 -00 replies
3/3Bluetooth: Call l2cap_conn_drop() when SMP recv callback failsnet/bluetooth/smp.c+19 -10 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/3] Some more SMP fixes

Hi,

Here's some more patches to remove some more SMP-specific code from l2cap_core.c as well as return the old functionality where garbage SMP data would cause a call to l2cap_conn_del().

Johan

----------------------------------------------------------------
Johan Hedberg (3):
Bluetooth: Use L2CAP resume callback to call smp_distribute_keys
Bluetooth: Add public l2cap_conn_drop() API to request disconnection
Bluetooth: Call l2cap_conn_drop() when SMP recv callback fails

 include/net/bluetooth/l2cap.h |   4 +
 net/bluetooth/l2cap_core.c    |  31 ++-
 net/bluetooth/smp.c           | 398 ++++++++++++++++++++------------------
 net/bluetooth/smp.h           |   1 -
 4 files changed, 243 insertions(+), 191 deletions(-)