linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] Bluetooth: Fix L2CAP socket shutdown for LE connections
@ 2013-01-25 21:13 Andre Guedes
  2013-01-25 21:13 ` [PATCH 2/2] Bluetooth: Rename hci_acl_disconn Andre Guedes
  2013-01-26  3:28 ` [PATCH 1/2] Bluetooth: Fix L2CAP socket shutdown for LE connections Marcel Holtmann
  0 siblings, 2 replies; 5+ messages in thread
From: Andre Guedes @ 2013-01-25 21:13 UTC (permalink / raw)
  To: linux-bluetooth

During the L2CAP socket shutdown, the LE connection is not terminated
as expected. This bug can be reproduced using l2test tool. Once the
LE connection is established, kill l2test and the LE connection will
not terminate.

This patch fixes hci_conn_disconnect function so it is able to
terminate LE connections.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
---
 net/bluetooth/hci_conn.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index 25bfce0..0492949 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -250,6 +250,7 @@ static void hci_conn_disconnect(struct hci_conn *conn)
 
 	switch (conn->type) {
 	case ACL_LINK:
+	case LE_LINK:
 		hci_acl_disconn(conn, reason);
 		break;
 	case AMP_LINK:
-- 
1.8.1.1


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

end of thread, other threads:[~2013-01-28 18:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-25 21:13 [PATCH 1/2] Bluetooth: Fix L2CAP socket shutdown for LE connections Andre Guedes
2013-01-25 21:13 ` [PATCH 2/2] Bluetooth: Rename hci_acl_disconn Andre Guedes
2013-01-26  3:30   ` Marcel Holtmann
2013-01-26  3:28 ` [PATCH 1/2] Bluetooth: Fix L2CAP socket shutdown for LE connections Marcel Holtmann
2013-01-28 18:17   ` Andre Guedes

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).