From 089257402a50b3b1389a2412173032eefe82fa3d Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 24 Feb 2012 17:09:38 +0100 Subject: [PATCH] --- yaml --- r: 291065 b: refs/heads/master c: 8a7a3fd680f3ea9f22fc504caf5e8e056a800401 h: refs/heads/master i: 291063: af45226c025382b0c684b1b63b0ffbef5d4d1d79 v: v3 --- [refs] | 2 +- trunk/drivers/bluetooth/hci_ldisc.c | 5 +++++ trunk/drivers/bluetooth/hci_uart.h | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index dd8da538c3ef..e773f82b2805 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a55e1f388767116836d32457a50eda7da3e925e5 +refs/heads/master: 8a7a3fd680f3ea9f22fc504caf5e8e056a800401 diff --git a/trunk/drivers/bluetooth/hci_ldisc.c b/trunk/drivers/bluetooth/hci_ldisc.c index cdc3594f9901..fd5adb408f44 100644 --- a/trunk/drivers/bluetooth/hci_ldisc.c +++ b/trunk/drivers/bluetooth/hci_ldisc.c @@ -396,6 +396,11 @@ static int hci_uart_register_dev(struct hci_uart *hu) if (!test_bit(HCI_UART_RESET_ON_INIT, &hu->hdev_flags)) set_bit(HCI_QUIRK_NO_RESET, &hdev->quirks); + if (test_bit(HCI_UART_CREATE_AMP, &hu->hdev_flags)) + hdev->dev_type = HCI_AMP; + else + hdev->dev_type = HCI_BREDR; + if (hci_register_dev(hdev) < 0) { BT_ERR("Can't register HCI device"); hci_free_dev(hdev); diff --git a/trunk/drivers/bluetooth/hci_uart.h b/trunk/drivers/bluetooth/hci_uart.h index 54c8983b183e..6cf6ab22ad21 100644 --- a/trunk/drivers/bluetooth/hci_uart.h +++ b/trunk/drivers/bluetooth/hci_uart.h @@ -46,6 +46,7 @@ #define HCI_UART_RAW_DEVICE 0 #define HCI_UART_RESET_ON_INIT 1 +#define HCI_UART_CREATE_AMP 2 struct hci_uart;