summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_core.c
diff options
context:
space:
mode:
authorAndre Guedes2011-07-01 00:20:55 +0200
committerGustavo F. Padovan2011-07-07 00:10:41 +0200
commiteead27da60df80a112d1ac3ea482226e9794c26b (patch)
tree56c4ad84024a4fa628cf4975924ec7a1311a05ec /net/bluetooth/hci_core.c
parentBluetooth: Add enable_le module parameter (diff)
downloadkernel-qcow2-linux-eead27da60df80a112d1ac3ea482226e9794c26b.tar.gz
kernel-qcow2-linux-eead27da60df80a112d1ac3ea482226e9794c26b.tar.xz
kernel-qcow2-linux-eead27da60df80a112d1ac3ea482226e9794c26b.zip
Bluetooth: Add lmp_host_le_capable() macro
Since we have the extended LMP features properly implemented, we should check the LMP_HOST_LE bit to know if the host supports LE. Signed-off-by: Andre Guedes <andre.guedes@openbossa.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/hci_core.c')
-rw-r--r--net/bluetooth/hci_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index cd59b849d055..886cc44e1717 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -542,7 +542,7 @@ int hci_dev_open(__u16 dev)
ret = __hci_request(hdev, hci_init_req, 0,
msecs_to_jiffies(HCI_INIT_TIMEOUT));
- if (lmp_le_capable(hdev))
+ if (lmp_host_le_capable(hdev))
ret = __hci_request(hdev, hci_le_init_req, 0,
msecs_to_jiffies(HCI_INIT_TIMEOUT));