summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorPedro Nishiyama <nishiyama.pedro@gmail.com>2025-03-01 03:22:59 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-04-20 10:15:22 +0200
commit09246dfb5c8758113f878456d30c02ecb42b0595 (patch)
tree48a64c66a3cff033a6edb94d446a9378f868309c /net
parent035e1bffc063399ad1e193f6e4d8f70bb2f6301f (diff)
downloadlinux-09246dfb5c8758113f878456d30c02ecb42b0595.tar.gz
linux-09246dfb5c8758113f878456d30c02ecb42b0595.tar.bz2
linux-09246dfb5c8758113f878456d30c02ecb42b0595.zip
Bluetooth: Add quirk for broken READ_PAGE_SCAN_TYPE
[ Upstream commit 127881334eaad639e0a19a399ee8c91d6c9dc982 ] Some fake controllers cannot be initialized because they return a smaller report than expected for READ_PAGE_SCAN_TYPE. Signed-off-by: Pedro Nishiyama <nishiyama.pedro@gmail.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/hci_sync.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c
index bb455e96a715..cb4d47ae129e 100644
--- a/net/bluetooth/hci_sync.c
+++ b/net/bluetooth/hci_sync.c
@@ -4156,7 +4156,8 @@ static int hci_read_page_scan_type_sync(struct hci_dev *hdev)
* support the Read Page Scan Type command. Check support for
* this command in the bit mask of supported commands.
*/
- if (!(hdev->commands[13] & 0x01))
+ if (!(hdev->commands[13] & 0x01) ||
+ test_bit(HCI_QUIRK_BROKEN_READ_PAGE_SCAN_TYPE, &hdev->quirks))
return 0;
return __hci_cmd_sync_status(hdev, HCI_OP_READ_PAGE_SCAN_TYPE,