]> www.infradead.org Git - users/hch/dma-mapping.git/commit
Bluetooth: hci_sync: Fix use HCI_OP_LE_READ_BUFFER_SIZE_V2
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 19 Dec 2022 21:32:51 +0000 (13:32 -0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 17 Jan 2023 23:57:54 +0000 (15:57 -0800)
commit3a4d29b6d631bb00236a98887e1039bbfc1b6ab5
tree7864a798b00c891f42049ef451a7f1288e4dad9d
parent2185e0fdbb2137f22a9dd9fcbf6481400d56299b
Bluetooth: hci_sync: Fix use HCI_OP_LE_READ_BUFFER_SIZE_V2

Don't try to use HCI_OP_LE_READ_BUFFER_SIZE_V2 if controller don't
support ISO channels, but in order to check if ISO channels are
supported HCI_OP_LE_READ_LOCAL_FEATURES needs to be done earlier so the
features bits can be checked on hci_le_read_buffer_size_sync.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=216817
Fixes: c1631dbc00c1 ("Bluetooth: hci_sync: Fix hci_read_buffer_size_sync")
Cc: stable@vger.kernel.org # 6.1
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_sync.c