From: Ville Tervo <ville.tervo@nokia.com>
To: ext Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [bluetooth-next] Bluetooth: fix sending LE data over USB
Date: Tue, 15 Mar 2011 12:38:09 +0200 [thread overview]
Message-ID: <20110315103809.GF4369@null> (raw)
In-Reply-To: <1300137633-24495-1-git-send-email-vinicius.gomes@openbossa.org>
Hi Vinicius,
On Mon, Mar 14, 2011 at 06:20:33PM -0300, ext Vinicius Costa Gomes wrote:
> 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>
Looks ok.
Acked-by: Ville Tervo <ville.tervo@nokia.com>
> ---
> 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 411ae9c..59dd4ae 100644
> --- a/drivers/bluetooth/btusb.c
> +++ b/drivers/bluetooth/btusb.c
> @@ -690,7 +690,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);
> --
> 1.7.4.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-03-15 10:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-14 21:20 [bluetooth-next] Bluetooth: fix sending LE data over USB Vinicius Costa Gomes
2011-03-15 10:38 ` Ville Tervo [this message]
2011-03-16 20:45 ` Gustavo F. Padovan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110315103809.GF4369@null \
--to=ville.tervo@nokia.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=vinicius.gomes@openbossa.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.