From: Andrei Emeltchenko Date: Fri, 11 Nov 2011 15:02:15 +0000 (+0200) Subject: Bluetooth: Do not set HCI_RAW when HS enabled X-Git-Tag: next-20111117~40^2~7 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=07e3b94ac385cc9d5fd31d6dcd233da0958b9984;p=karo-tx-linux.git Bluetooth: Do not set HCI_RAW when HS enabled Signed-off-by: Andrei Emeltchenko Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan --- diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index fb3feeb185d7..cf18f6d1b9a3 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -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)) {