diff options
author | Vikram Kandukuri <vkandukuri@atheros.com> | 2009-07-01 02:09:58 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-08-22 17:12:17 -0400 |
commit | 981b1414d78a7a42cab48b97d4de54a62d61db88 (patch) | |
tree | 74e1189b045b3b9e84c23a6b8aa892265df8046d | |
parent | fd0b3ff707dc1f7837079044bd4eca7ed505f70d (diff) |
Bluetooth: Fix missing scheduling when VIRTUAL_CABLE_UNPLUG is received
There is a test case in PTS tool; PTS will send the VIRTUAL_CABLE_UNPLUG
command to IUT. Then IUT should disconnect the channel and kill the HID
session when it receives the command. The VIRTUAL_CABLE_UNPLUG command
is parsed by HID transport, but it is not scheduled to do so. Add a
call to hidp_schedule() to kill the session.
Signed-off-by: Jothikumar Mothilal <jothikumar.mothilal@atheros.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r-- | 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 b18676870d55..a9f7afb6ee35 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, | |||
374 | 374 | ||
375 | /* Kill session thread */ | 375 | /* Kill session thread */ |
376 | atomic_inc(&session->terminate); | 376 | atomic_inc(&session->terminate); |
377 | hidp_schedule(session); | ||
377 | } | 378 | } |
378 | } | 379 | } |
379 | 380 | ||