linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] Bluetooth: fix unset of RemoteBusy flag
@ 2009-12-15 17:56 Gustavo F. Padovan
  2009-12-15 20:58 ` AW: " Marian Harbach
  2009-12-17 20:06 ` Marcel Holtmann
  0 siblings, 2 replies; 4+ messages in thread
From: Gustavo F. Padovan @ 2009-12-15 17:56 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: marcel, gustavo

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>
---
 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 8a2b3d3..2a2da9d 100644
--- a/net/bluetooth/l2cap.c
+++ b/net/bluetooth/l2cap.c
@@ -3469,8 +3469,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;
 
-- 
1.6.4.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-12-17 20:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-15 17:56 [PATCH 1/1] Bluetooth: fix unset of RemoteBusy flag Gustavo F. Padovan
2009-12-15 20:58 ` AW: " Marian Harbach
2009-12-15 21:52   ` Gustavo F. Padovan
2009-12-17 20:06 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).