Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314406
b: refs/heads/master
c: 0362520
h: refs/heads/master
v: v3
  • Loading branch information
Mat Martineau authored and Johan Hedberg committed Jun 5, 2012
1 parent fc06136 commit c320eee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 80909e04de4dbbe76a220ccd5f9b32d8d5a8c22c
refs/heads/master: 0362520bf9d35f09c2693e14352f4b0ad07397fa
10 changes: 7 additions & 3 deletions trunk/net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2761,16 +2761,20 @@ static void l2cap_add_opt_efs(void **ptr, struct l2cap_chan *chan)
static void l2cap_ack_timeout(struct work_struct *work)
{
struct l2cap_chan *chan = container_of(work, struct l2cap_chan,
ack_timer.work);
ack_timer.work);
u16 frames_to_ack;

BT_DBG("chan %p", chan);

l2cap_chan_lock(chan);

l2cap_send_ack(chan);
frames_to_ack = __seq_offset(chan, chan->buffer_seq,
chan->last_acked_seq);

l2cap_chan_unlock(chan);
if (frames_to_ack)
l2cap_send_rr_or_rnr(chan, 0);

l2cap_chan_unlock(chan);
l2cap_chan_put(chan);
}

Expand Down

0 comments on commit c320eee

Please sign in to comment.