Bluetooth: Don't announce raw-only devices over management interface
Subsystems (2)
Marcel Holtmann
maintainerPATCH 1/1 Bluetooth: Don't announce raw-only devices over management interface
When the HCI_QUIRK_RAW_DEVICE is set, then the controller existence should not be announced over the management interface.
Signed-off-by Marcel Holtmann <[email protected]>
--- net/bluetooth/hci_core.c | 1 + 1 file changed, 1 insertion(+)
net/bluetooth/hci_core.c +1 -0
@@ -2275,6 +2275,7 @@ static int hci_dev_do_open(struct hci_dev *hdev)hci_notify (hdev,HCI_DEV_UP );if (!test_bit (HCI_SETUP , &hdev->dev_flags) && !test_bit (HCI_USER_CHANNEL , &hdev->dev_flags) && + !test_bit (HCI_QUIRK_RAW_DEVICE , &hdev->quirks) && hdev->dev_type ==HCI_BREDR ) {hci_dev_lock (hdev);mgmt_powered (hdev,1 );
Signature · 1 line
1.9.3