Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07e3b94a authored by Andrei Emeltchenko's avatar Andrei Emeltchenko Committed by Gustavo Padovan
Browse files

Bluetooth: Do not set HCI_RAW when HS enabled

parent 8830f514
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -521,8 +521,9 @@ int hci_dev_open(__u16 dev)
	if (test_bit(HCI_QUIRK_RAW_DEVICE, &hdev->quirks))
		set_bit(HCI_RAW, &hdev->flags);

	/* Treat all non BR/EDR controllers as raw devices for now */
	if (hdev->dev_type != HCI_BREDR)
	/* Treat all non BR/EDR controllers as raw devices if
	   enable_hs is not set */
	if (hdev->dev_type != HCI_BREDR && !enable_hs)
		set_bit(HCI_RAW, &hdev->flags);

	if (hdev->open(hdev)) {