Skip to content

Commit

Permalink
Bluetooth: Fix missing scheduling when VIRTUAL_CABLE_UNPLUG is received
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vikram Kandukuri authored and Marcel Holtmann committed Aug 22, 2009
1 parent fd0b3ff commit 981b141
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/bluetooth/hidp/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ static void hidp_process_hid_control(struct hidp_session *session,

/* Kill session thread */
atomic_inc(&session->terminate);
hidp_schedule(session);
}
}

Expand Down

0 comments on commit 981b141

Please sign in to comment.