mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
f630cf0d54
commit
8763b4da41
|
@ -693,7 +693,8 @@ static int btusb_send_frame(struct sk_buff *skb)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HCI_ACLDATA_PKT:
|
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;
|
return -ENODEV;
|
||||||
|
|
||||||
urb = usb_alloc_urb(0, GFP_ATOMIC);
|
urb = usb_alloc_urb(0, GFP_ATOMIC);
|
||||||
|
|
Loading…
Reference in New Issue