* [bluetooth-next] Bluetooth: fix sending LE data over USB
@ 2011-03-14 21:20 Vinicius Costa Gomes
2011-03-15 10:38 ` Ville Tervo
2011-03-16 20:45 ` Gustavo F. Padovan
0 siblings, 2 replies; 3+ messages in thread
From: Vinicius Costa Gomes @ 2011-03-14 21:20 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Vinicius Costa Gomes
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>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [bluetooth-next] Bluetooth: fix sending LE data over USB
2011-03-14 21:20 [bluetooth-next] Bluetooth: fix sending LE data over USB Vinicius Costa Gomes
@ 2011-03-15 10:38 ` Ville Tervo
2011-03-16 20:45 ` Gustavo F. Padovan
1 sibling, 0 replies; 3+ messages in thread
From: Ville Tervo @ 2011-03-15 10:38 UTC (permalink / raw)
To: ext Vinicius Costa Gomes; +Cc: linux-bluetooth
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [bluetooth-next] Bluetooth: fix sending LE data over USB
2011-03-14 21:20 [bluetooth-next] Bluetooth: fix sending LE data over USB Vinicius Costa Gomes
2011-03-15 10:38 ` Ville Tervo
@ 2011-03-16 20:45 ` Gustavo F. Padovan
1 sibling, 0 replies; 3+ messages in thread
From: Gustavo F. Padovan @ 2011-03-16 20:45 UTC (permalink / raw)
To: Vinicius Costa Gomes; +Cc: linux-bluetooth
Hi Vinicius,
* Vinicius Costa Gomes <vinicius.gomes@openbossa.org> [2011-03-14 18:20:33 -0300]:
> 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>
> ---
> drivers/bluetooth/btusb.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
Applied, thanks.
--
Gustavo F. Padovan
http://profusion.mobi
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-16 20:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-14 21:20 [bluetooth-next] Bluetooth: fix sending LE data over USB Vinicius Costa Gomes
2011-03-15 10:38 ` Ville Tervo
2011-03-16 20:45 ` Gustavo F. Padovan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).