]> git.dujemihanovic.xyz Git - linux.git/commit
Bluetooth: SMP: Fix assumption of Central always being Initiator
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 30 Aug 2023 22:08:06 +0000 (15:08 -0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 15 Aug 2024 17:09:24 +0000 (13:09 -0400)
commit28cd47f75185c4818b0fb1b46f2f02faaba96376
tree524c558fc679f0941353fabf67fa699ec45f6d6d
parent932021a11805b9da4bd6abf66fe233cccd59fe0e
Bluetooth: SMP: Fix assumption of Central always being Initiator

SMP initiator role shall be considered the one that initiates the
pairing procedure with SMP_CMD_PAIRING_REQ:

BLUETOOTH CORE SPECIFICATION Version 5.3 | Vol 3, Part H
page 1557:

Figure 2.1: LE pairing phases

Note that by sending SMP_CMD_SECURITY_REQ it doesn't change the role to
be Initiator.

Link: https://github.com/bluez/bluez/issues/567
Fixes: b28b4943660f ("Bluetooth: Add strict checks for allowed SMP PDUs")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/smp.c