]> git.itanic.dy.fi Git - linux-stable/commit
Bluetooth: hci_event: Fix sending HCI_OP_READ_ENC_KEY_SIZE
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 15 Apr 2024 17:41:01 +0000 (13:41 -0400)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 24 Apr 2024 20:26:11 +0000 (16:26 -0400)
commita9a830a676a9a93c5020f5c61236166931fa4266
tree1d9f9168e8b787a31b86a4c6ab87928050411bc4
parentb23d98d46d2858dcc0fd016caff165cbdc24e70a
Bluetooth: hci_event: Fix sending HCI_OP_READ_ENC_KEY_SIZE

The code shall always check if HCI_QUIRK_BROKEN_READ_ENC_KEY_SIZE has
been set before attempting to use HCI_OP_READ_ENC_KEY_SIZE.

Fixes: c569242cd492 ("Bluetooth: hci_event: set the conn encrypted before conn establishes")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_event.c