diff options
Diffstat (limited to 'drivers/bluetooth/hci_vhci.c')
-rw-r--r-- | drivers/bluetooth/hci_vhci.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/bluetooth/hci_vhci.c b/drivers/bluetooth/hci_vhci.c index 2e302a11ab55..2ed6ab1c6e1b 100644 --- a/drivers/bluetooth/hci_vhci.c +++ b/drivers/bluetooth/hci_vhci.c | |||
@@ -41,6 +41,8 @@ | |||
41 | 41 | ||
42 | #define VERSION "1.3" | 42 | #define VERSION "1.3" |
43 | 43 | ||
44 | static bool amp; | ||
45 | |||
44 | struct vhci_data { | 46 | struct vhci_data { |
45 | struct hci_dev *hdev; | 47 | struct hci_dev *hdev; |
46 | 48 | ||
@@ -239,6 +241,9 @@ static int vhci_open(struct inode *inode, struct file *file) | |||
239 | hdev->bus = HCI_VIRTUAL; | 241 | hdev->bus = HCI_VIRTUAL; |
240 | hdev->driver_data = data; | 242 | hdev->driver_data = data; |
241 | 243 | ||
244 | if (amp) | ||
245 | hdev->dev_type = HCI_AMP; | ||
246 | |||
242 | hdev->open = vhci_open_dev; | 247 | hdev->open = vhci_open_dev; |
243 | hdev->close = vhci_close_dev; | 248 | hdev->close = vhci_close_dev; |
244 | hdev->flush = vhci_flush; | 249 | hdev->flush = vhci_flush; |
@@ -303,6 +308,9 @@ static void __exit vhci_exit(void) | |||
303 | module_init(vhci_init); | 308 | module_init(vhci_init); |
304 | module_exit(vhci_exit); | 309 | module_exit(vhci_exit); |
305 | 310 | ||
311 | module_param(amp, bool, 0644); | ||
312 | MODULE_PARM_DESC(amp, "Create AMP controller device"); | ||
313 | |||
306 | MODULE_AUTHOR("Marcel Holtmann <marcel@holtmann.org>"); | 314 | MODULE_AUTHOR("Marcel Holtmann <marcel@holtmann.org>"); |
307 | MODULE_DESCRIPTION("Bluetooth virtual HCI driver ver " VERSION); | 315 | MODULE_DESCRIPTION("Bluetooth virtual HCI driver ver " VERSION); |
308 | MODULE_VERSION(VERSION); | 316 | MODULE_VERSION(VERSION); |