hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/bluetooth/hci_vhci.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 *
34 * Bluetooth virtual HCI driver
....@@ -5,22 +6,6 @@
56 * Copyright (C) 2000-2001 Qualcomm Incorporated
67 * Copyright (C) 2002-2003 Maxim Krasnyansky <maxk@qualcomm.com>
78 * Copyright (C) 2004-2006 Marcel Holtmann <marcel@holtmann.org>
8
- *
9
- *
10
- * This program is free software; you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License as published by
12
- * the Free Software Foundation; either version 2 of the License, or
13
- * (at your option) any later version.
14
- *
15
- * This program is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
- * GNU General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU General Public License
21
- * along with this program; if not, write to the Free Software
22
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
- *
249 */
2510
2611 #include <linux/module.h>
....@@ -136,6 +121,8 @@
136121 if (opcode & 0x80)
137122 set_bit(HCI_QUIRK_RAW_DEVICE, &hdev->quirks);
138123
124
+ set_bit(HCI_QUIRK_VALID_LE_STATES, &hdev->quirks);
125
+
139126 if (hci_register_dev(hdev) < 0) {
140127 BT_ERR("Can't register HCI device");
141128 hci_free_dev(hdev);
....@@ -193,6 +180,7 @@
193180 case HCI_EVENT_PKT:
194181 case HCI_ACLDATA_PKT:
195182 case HCI_SCODATA_PKT:
183
+ case HCI_ISODATA_PKT:
196184 if (!data->hdev) {
197185 kfree_skb(skb);
198186 return -ENODEV;