Skip to content

Bluetooth: Add Passkey Entry and User Confirm hooks for SMP

Brian Gix linux-bluetooth 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Bluetooth: Add SMP support to user_confirm_replynet/bluetooth/mgmt.c+19 -31 reply
2/3Bluetooth: Add MGMT opcode for User Passkey entryinclude/net/bluetooth/hci.h include/net/bluetooth/mgmt.h net/bluetooth/mgmt.c+162 -01 reply
3/3Bluetooth: Add User Passkey entry to HCI Eventsinclude/net/bluetooth/hci.h include/net/bluetooth/hci_core.h net/bluetooth/hci_event.c+71 -00 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] Bluetooth: Add Passkey Entry and User Confirm hooks for SMP

While I actually prefer Johan's method of adding the User Confirm MGMT code, with it's code re-use between user_confirm_reply, and user_confirm_neg_reply, I have broken the user_passkey_reply out from user_passkey_neg_reply, and added an additional patch to hook in the HCI/SSP based usage of passkeys.

This makes sense, I suppose, since the regular and neg replies for passkeys are different sizes.

Passkey's only come into play only if our OI_CAP happens to be KeyboardOnly (for BR/EDR/LER) or DisplayKeyboard (LE only).

So the summary of the changes is:

1. Addition of BR/EDR vs LE breakout in user_confirm_reply
1.1 Adds SMP placeholder
1.2 Keeps Johan's confirm_reply & confirm_neg_reply structure.
1.2.1 Johan can defend or change that himself, but the existing code works.

2. Addition of user_passkey_reply, with both BR/EDR (SSP) and LE (SMP) handling 2.1 Adds approriate SSP HCI opcodes
2.2 Adds appropriate MGMT opcodes
2.3 Adds SMP placeholder
2.4 Seperate paths for passkey_reply & passkey_neg_reply

3. Addition of HCI event handling and forwarding for the appropriate BR/EDR SSP events

Signature · 4 lines
Brian Gix
[email protected]
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum