|
@@ -1308,18 +1308,13 @@ int hci_send_acl(struct hci_conn *conn, struct sk_buff *skb, __u16 flags)
|
|
EXPORT_SYMBOL(hci_send_acl);
|
|
EXPORT_SYMBOL(hci_send_acl);
|
|
|
|
|
|
/* Send SCO data */
|
|
/* Send SCO data */
|
|
-int hci_send_sco(struct hci_conn *conn, struct sk_buff *skb)
|
|
|
|
|
|
+void hci_send_sco(struct hci_conn *conn, struct sk_buff *skb)
|
|
{
|
|
{
|
|
struct hci_dev *hdev = conn->hdev;
|
|
struct hci_dev *hdev = conn->hdev;
|
|
struct hci_sco_hdr hdr;
|
|
struct hci_sco_hdr hdr;
|
|
|
|
|
|
BT_DBG("%s len %d", hdev->name, skb->len);
|
|
BT_DBG("%s len %d", hdev->name, skb->len);
|
|
|
|
|
|
- if (skb->len > hdev->sco_mtu) {
|
|
|
|
- kfree_skb(skb);
|
|
|
|
- return -EINVAL;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
hdr.handle = cpu_to_le16(conn->handle);
|
|
hdr.handle = cpu_to_le16(conn->handle);
|
|
hdr.dlen = skb->len;
|
|
hdr.dlen = skb->len;
|
|
|
|
|
|
@@ -1332,8 +1327,6 @@ int hci_send_sco(struct hci_conn *conn, struct sk_buff *skb)
|
|
|
|
|
|
skb_queue_tail(&conn->data_q, skb);
|
|
skb_queue_tail(&conn->data_q, skb);
|
|
tasklet_schedule(&hdev->tx_task);
|
|
tasklet_schedule(&hdev->tx_task);
|
|
-
|
|
|
|
- return 0;
|
|
|
|
}
|
|
}
|
|
EXPORT_SYMBOL(hci_send_sco);
|
|
EXPORT_SYMBOL(hci_send_sco);
|
|
|
|
|