aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMat Martineau <mathewm@codeaurora.org>2012-05-14 14:24:33 -0400
committerGustavo Padovan <gustavo@padovan.org>2012-05-14 15:32:11 -0400
commit577cfaeb864874011386a05ab4f5580a6a2aeb11 (patch)
tree8b1c3b8f751c4f8cf0066890d587c518a11f05c2 /net
parent53168e5b3b40efffff8b9f2e6e0eaf5607daa884 (diff)
Bluetooth: Update tx_send_head when sending ERTM data
Commit 94122bbe9c8c4ad7ba9f02f9a30bfc95672c404e 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: Andrei Emeltchenko <andrei.emeltchenko@intel.com> Signed-off-by: Mat Martineau <mathewm@codeaurora.org> Signed-off-by: Gustavo Padovan <gustavo@padovan.org>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/l2cap_core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index 2b30bd767779..869beb30f480 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -2104,7 +2104,10 @@ int l2cap_chan_send(struct l2cap_chan *chan, struct msghdr *msg, size_t len,
2104 if (err) 2104 if (err)
2105 break; 2105 break;
2106 2106
2107 if (chan->mode == L2CAP_MODE_ERTM && chan->tx_send_head == NULL)
2108 chan->tx_send_head = seg_queue.next;
2107 skb_queue_splice_tail_init(&seg_queue, &chan->tx_q); 2109 skb_queue_splice_tail_init(&seg_queue, &chan->tx_q);
2110
2108 if (chan->mode == L2CAP_MODE_ERTM) 2111 if (chan->mode == L2CAP_MODE_ERTM)
2109 err = l2cap_ertm_send(chan); 2112 err = l2cap_ertm_send(chan);
2110 else 2113 else