Bluetooth: Fix missing scheduling when VIRTUAL_CABLE_UNPLUG is received
authorVikram Kandukuri <vkandukuri@atheros.com>
Wed, 1 Jul 2009 06:09:58 +0000 (11:39 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 22 Aug 2009 21:12:17 +0000 (14:12 -0700)
commit981b1414d78a7a42cab48b97d4de54a62d61db88
tree74e1189b045b3b9e84c23a6b8aa892265df8046d
parentfd0b3ff707dc1f7837079044bd4eca7ed505f70d
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>
net/bluetooth/hidp/core.c