aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2010-05-10 13:54:14 -0400
committerMarcel Holtmann <marcel@holtmann.org>2010-07-21 13:39:07 -0400
commit64988868637304330f7df20d08b965592312c531 (patch)
treef58299836735fad66af1d7ff41bdbfc8553e1522
parent0e98958d4f827f814444757e0376546b462dfe6f (diff)
Bluetooth: Tweaks to l2cap_send_i_or_rr_or_rnr() flow
l2cap_send_sframe() already set the F-bit if we set L2CAP_CONN_SEND_FBIT and unset L2CAP_CONN_SEND_FBIT after send the F-bit. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi> Reviewed-by: João Paulo Rechi Vita <jprvita@profusion.mobi> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r--net/bluetooth/l2cap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c
index 6e8a0512a9c9..65c6a989449a 100644
--- a/net/bluetooth/l2cap.c
+++ b/net/bluetooth/l2cap.c
@@ -3408,10 +3408,9 @@ static inline void l2cap_send_i_or_rr_or_rnr(struct sock *sk)
3408 control |= pi->buffer_seq << L2CAP_CTRL_REQSEQ_SHIFT; 3408 control |= pi->buffer_seq << L2CAP_CTRL_REQSEQ_SHIFT;
3409 3409
3410 if (pi->conn_state & L2CAP_CONN_LOCAL_BUSY) { 3410 if (pi->conn_state & L2CAP_CONN_LOCAL_BUSY) {
3411 control |= L2CAP_SUPER_RCV_NOT_READY | L2CAP_CTRL_FINAL; 3411 control |= L2CAP_SUPER_RCV_NOT_READY;
3412 l2cap_send_sframe(pi, control); 3412 l2cap_send_sframe(pi, control);
3413 pi->conn_state |= L2CAP_CONN_RNR_SENT; 3413 pi->conn_state |= L2CAP_CONN_RNR_SENT;
3414 pi->conn_state &= ~L2CAP_CONN_SEND_FBIT;
3415 } 3414 }
3416 3415
3417 if (pi->conn_state & L2CAP_CONN_REMOTE_BUSY) 3416 if (pi->conn_state & L2CAP_CONN_REMOTE_BUSY)