public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: Kill session whenever VIRTUAL_CABLE_UNPLUG is passed.
@ 2009-06-20  6:19 Vikram Kandukuri
  2009-06-19  9:36 ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: Vikram Kandukuri @ 2009-06-20  6:19 UTC (permalink / raw)
  To: marcel; +Cc: linux-bluetooth

Whenever the remote device sends VIRTUAL CABLE UNPLUG, the device should
be disconnected.

Signed-off-by: Jothikumar Mothilal <jothikumar.mothilal@atheros.com>
---
 net/bluetooth/hidp/core.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c
index b186768..a9f7afb 100644
--- a/net/bluetooth/hidp/core.c
+++ b/net/bluetooth/hidp/core.c
@@ -374,6 +374,7 @@ static void hidp_process_hid_control(struct hidp_session *session,
 
 		/* Kill session thread */
 		atomic_inc(&session->terminate);
+		hidp_schedule(session);
 	}
 }
 
-- 
1.6.0.4

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

end of thread, other threads:[~2009-06-25  7:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-20  6:19 [PATCH] Bluetooth: Kill session whenever VIRTUAL_CABLE_UNPLUG is passed Vikram Kandukuri
2009-06-19  9:36 ` Marcel Holtmann
2009-06-25  7:26   ` Jothikumar Mothilal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox