Skip to content

Commit

Permalink
Bluetooth: L2CAP: Don't return -EAGAIN if out of credits
Browse files Browse the repository at this point in the history
Just keep queueing them into TX queue since the caller might just have
to do the same and there is no impact in adding another packet to the
TX queue even if there aren't any credits to transmit them.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Acked-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Luiz Augusto von Dentz authored and Marcel Holtmann committed Apr 12, 2017
1 parent da75fdc commit 0373214
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2458,9 +2458,6 @@ int l2cap_chan_send(struct l2cap_chan *chan, struct msghdr *msg, size_t len)
if (len > chan->omtu)
return -EMSGSIZE;

if (!chan->tx_credits)
return -EAGAIN;

__skb_queue_head_init(&seg_queue);

err = l2cap_segment_le_sdu(chan, &seg_queue, msg, len);
Expand Down

0 comments on commit 0373214

Please sign in to comment.