Skip to content

Commit d5f8a75

Browse files
Mat MartineauGustavo Padovan
authored andcommitted
Bluetooth: Flag ACL frames as complete for AMP controllers
AMP controllers expect to transmit only "complete" ACL frames. These frames have both the "start" and "cont" bits set. AMP does not allow fragmented ACLs. Signed-off-by: Mat Martineau <mathewm@codeaurora.org> Acked-by: Marcel Holtmann <marcel@holtmann.org> Acked-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
1 parent 8eb200b commit d5f8a75

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎net/bluetooth/l2cap_core.c‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,15 @@ static void l2cap_do_send(struct l2cap_chan *chan, struct sk_buff *skb)
763763
BT_DBG("chan %p, skb %p len %d priority %u", chan, skb, skb->len,
764764
skb->priority);
765765

766+
if (chan->hs_hcon && !__chan_is_moving(chan)) {
767+
if (chan->hs_hchan)
768+
hci_send_acl(chan->hs_hchan, skb, ACL_COMPLETE);
769+
else
770+
kfree_skb(skb);
771+
772+
return;
773+
}
774+
766775
if (!test_bit(FLAG_FLUSHABLE, &chan->flags) &&
767776
lmp_no_flush_capable(hcon->hdev))
768777
flags = ACL_START_NO_FLUSH;

0 commit comments

Comments
 (0)