diff options
| author | Gustavo F. Padovan <gustavo@las.ic.unicamp.br> | 2009-12-15 12:56:34 -0500 |
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2009-12-17 15:04:08 -0500 |
| commit | 186de9a33803c7ee20d9af75c9049b50e68a3a08 (patch) | |
| tree | 4ec1d2f0b8c7624271cbbff21c6b8b134203574f | |
| parent | 971beb83aeb2a309175682cf5683d64fd4591841 (diff) | |
Bluetooth: Fix unset of RemoteBusy flag for L2CAP
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>
| -rw-r--r-- | net/bluetooth/l2cap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c index 5129b88c8e5b..7db9a1f8f882 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c | |||
| @@ -3435,8 +3435,8 @@ static inline int l2cap_data_channel_sframe(struct sock *sk, u16 rx_control, str | |||
| 3435 | (pi->unacked_frames > 0)) | 3435 | (pi->unacked_frames > 0)) |
| 3436 | __mod_retrans_timer(); | 3436 | __mod_retrans_timer(); |
| 3437 | 3437 | ||
| 3438 | l2cap_ertm_send(sk); | ||
| 3439 | pi->conn_state &= ~L2CAP_CONN_REMOTE_BUSY; | 3438 | pi->conn_state &= ~L2CAP_CONN_REMOTE_BUSY; |
| 3439 | l2cap_ertm_send(sk); | ||
| 3440 | } | 3440 | } |
| 3441 | break; | 3441 | break; |
| 3442 | 3442 | ||
