diff options
author | Vinicius Costa Gomes <vinicius.gomes@openbossa.org> | 2011-03-14 17:20:33 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-03-31 13:25:25 -0400 |
commit | 8693ac900e230c85d6fff428984a0f983330844d (patch) | |
tree | 43b58e7c39268bb13835801f7d8d81f22924d242 /drivers/bluetooth | |
parent | 105721328f0fa53e772592eaca17ee0023f0cc87 (diff) |
Bluetooth: Fix sending LE data over USB
Now that we have support for LE connections, before discarding a
frame we must check if there's a LE connection over that transport.
Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
Acked-by: Ville Tervo <ville.tervo@nokia.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/btusb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 2af2e770f4bd..762a5109c68a 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c | |||
@@ -693,7 +693,8 @@ static int btusb_send_frame(struct sk_buff *skb) | |||
693 | break; | 693 | break; |
694 | 694 | ||
695 | case HCI_ACLDATA_PKT: | 695 | case HCI_ACLDATA_PKT: |
696 | if (!data->bulk_tx_ep || hdev->conn_hash.acl_num < 1) | 696 | if (!data->bulk_tx_ep || (hdev->conn_hash.acl_num < 1 && |
697 | hdev->conn_hash.le_num < 1)) | ||
697 | return -ENODEV; | 698 | return -ENODEV; |
698 | 699 | ||
699 | urb = usb_alloc_urb(0, GFP_ATOMIC); | 700 | urb = usb_alloc_urb(0, GFP_ATOMIC); |