Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290875
b: refs/heads/master
c: 77f918b
h: refs/heads/master
i:
  290873: e7f3262
  290871: 22694fe
v: v3
  • Loading branch information
Szymon Janc authored and Johan Hedberg committed Feb 13, 2012
1 parent 2f2319e commit bba8fd9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 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: b17e73bb4269f47e1ea2d64a834f1cfc8644fabb
refs/heads/master: 77f918bc7babb8473933ca0a6deefc64fe24b06c
15 changes: 5 additions & 10 deletions trunk/net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3719,19 +3719,11 @@ static int l2cap_reassemble_sdu(struct l2cap_chan *chan, struct sk_buff *skb, u3

static void l2cap_ertm_enter_local_busy(struct l2cap_chan *chan)
{
u32 control;

BT_DBG("chan %p, Enter local busy", chan);

set_bit(CONN_LOCAL_BUSY, &chan->conn_state);

control = __set_reqseq(chan, chan->buffer_seq);
control |= __set_ctrl_super(chan, L2CAP_SUPER_RNR);
l2cap_send_sframe(chan, control);

set_bit(CONN_RNR_SENT, &chan->conn_state);

__clear_ack_timer(chan);
__set_ack_timer(chan);
}

static void l2cap_ertm_exit_local_busy(struct l2cap_chan *chan)
Expand Down Expand Up @@ -3871,8 +3863,11 @@ static inline int l2cap_data_channel_iframe(struct l2cap_chan *chan, u32 rx_cont
goto drop;
}

if (test_bit(CONN_LOCAL_BUSY, &chan->conn_state))
if (test_bit(CONN_LOCAL_BUSY, &chan->conn_state)) {
if (!test_bit(CONN_RNR_SENT, &chan->conn_state))
l2cap_send_ack(chan);
goto drop;
}

if (tx_seq == chan->expected_tx_seq)
goto expected;
Expand Down

0 comments on commit bba8fd9

Please sign in to comment.