]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
Bluetooth: Fix unset of RemoteBusy flag for L2CAP
authorGustavo F. Padovan <gustavo@las.ic.unicamp.br>
Tue, 15 Dec 2009 17:56:34 +0000 (15:56 -0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 17 Dec 2009 20:04:08 +0000 (12:04 -0800)
RemoteBusy flag need to be unset before l2cap_ertm_send(), otherwise
l2cap_ertm_send() will return without sending packets because it checks
that flag before start sending.

Signed-off-by: Gustavo F. Padovan <gustavo@las.ic.unicamp.br>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap.c

index 5129b88c8e5ba6cfc57b4ad5472937a43e98c2d8..7db9a1f8f882e74e4a48ada3e059bb5866f2055d 100644 (file)
@@ -3435,8 +3435,8 @@ static inline int l2cap_data_channel_sframe(struct sock *sk, u16 rx_control, str
                            (pi->unacked_frames > 0))
                                __mod_retrans_timer();
 
-                       l2cap_ertm_send(sk);
                        pi->conn_state &= ~L2CAP_CONN_REMOTE_BUSY;
+                       l2cap_ertm_send(sk);
                }
                break;