提交 577cfaeb 编写于 作者: M Mat Martineau 提交者: Gustavo Padovan

Bluetooth: Update tx_send_head when sending ERTM data

Commit 94122bbe introduced a problem
where tx_send_head was not set to point to the first skb in the ERTM
transmit queue, which stalled data transmission.  This change sets
that pointer when transmission is not already in progress.
Reported-by: NAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: NMat Martineau <mathewm@codeaurora.org>
Signed-off-by: NGustavo Padovan <gustavo@padovan.org>
上级 53168e5b
......@@ -2104,7 +2104,10 @@ int l2cap_chan_send(struct l2cap_chan *chan, struct msghdr *msg, size_t len,
if (err)
break;
if (chan->mode == L2CAP_MODE_ERTM && chan->tx_send_head == NULL)
chan->tx_send_head = seg_queue.next;
skb_queue_splice_tail_init(&seg_queue, &chan->tx_q);
if (chan->mode == L2CAP_MODE_ERTM)
err = l2cap_ertm_send(chan);
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册