]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: Fix not notifying when connection encryption changes
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 23 Oct 2023 23:26:23 +0000 (16:26 -0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 15 Dec 2023 16:24:42 +0000 (11:24 -0500)
commitf67eabffb57d0bee379994a18ec5f462b2cbdf86
tree47ec638dc123310d93be1aec268811ea7c1e004e
parent64b8bc7d5f1434c636a40bdcfcd42b278d1714be
Bluetooth: Fix not notifying when connection encryption changes

Some layers such as SMP depend on getting notified about encryption
changes immediately as they only allow certain PDU to be transmitted
over an encrypted link which may cause SMP implementation to reject
valid PDUs received thus causing pairing to fail when it shouldn't.

Fixes: 7aca0ac4792e ("Bluetooth: Wait for HCI_OP_WRITE_AUTH_PAYLOAD_TO to complete")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_event.c