diff options
author | Vinicius Costa Gomes <vinicius.gomes@openbossa.org> | 2011-03-14 18:20:33 -0300 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-03-24 17:04:44 -0300 |
commit | 8763b4da41132e2d5a896cd5e629c3c0a652205e (patch) | |
tree | c9b9232b6fe50d053d595f7025d64d1fc5f7f4be /drivers/bluetooth | |
parent | f630cf0d5434e3923e1b8226ffa2753ead6b0ce5 (diff) | |
download | kernel_samsung_aries-8763b4da41132e2d5a896cd5e629c3c0a652205e.zip kernel_samsung_aries-8763b4da41132e2d5a896cd5e629c3c0a652205e.tar.gz kernel_samsung_aries-8763b4da41132e2d5a896cd5e629c3c0a652205e.tar.bz2 |
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 2af2e77..762a510 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -693,7 +693,8 @@ static int btusb_send_frame(struct sk_buff *skb) break; case HCI_ACLDATA_PKT: - if (!data->bulk_tx_ep || hdev->conn_hash.acl_num < 1) + if (!data->bulk_tx_ep || (hdev->conn_hash.acl_num < 1 && + hdev->conn_hash.le_num < 1)) return -ENODEV; urb = usb_alloc_urb(0, GFP_ATOMIC); |