Skip to contentSkip to conversation

Bluetooth: Don't announce raw-only devices over management interface

PATCH New Marcel Holtmann 1 participant 1 message Jul 2, 2014

Subsystems (2)
lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 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.

---
 net/bluetooth/hci_core.c | 1 +
 1 file changed, 1 insertion(+)
net/bluetooth/hci_core.c +1 -0
index 21a4c8dfb874..9e983b242057 100644
@@ -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