Skip to contentSkip to conversation

Bluetooth: Scheduled to kill the session whenever VIRTUAL_CABLE_UNPLUG is received by IUT

PATCH In review Vikram Kandukuri 2 participants 2 messages Jun 30, 2009 – Jul 1, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Bluetooth: Scheduled to kill the session whenever VIRTUAL_CABLE_UNPLUG is received by IUT

Subject: [PATCH] Bluetooth: Scheduled to kill the session whenever VIRTUAL_CABLE_UNPLUG is received by IUT

There is a test case in PTS tool; PTS will send the VIRTUAL_CABLE_UNPLUG command to IUT. IUT should disconnect the channel and kill the session when it receives VIRTUAL_CABLE_UNPLUG command. VIRTUAL_CABLE_UNPLUG is parsed by hidp.ko but it is not scheduled to do so (There is no schedule code). So I have added hidp_schedule to kill the session.

---
 net/bluetooth/hidp/core.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
net/bluetooth/hidp/core.c +1 -0
index b186768..a9f7afb 100644
@@ -374,6 +374,7 @@ static void hidp_process_hid_control(struct hidp_session *session,
 
 		/* Kill session thread */
 		atomic_inc(&session->terminate);
+		hidp_schedule(session);
 	}
 }
 
Signature · 1 line
1.6.0.4
maintainer
#1 lore raw

Hi Vikram,

Quoted 7 lines

Subject: [PATCH] Bluetooth: Scheduled to kill the session whenever VIRTUAL_CABLE_UNPLUG is received by IUT

There is a test case in PTS tool; PTS will send the VIRTUAL_CABLE_UNPLUG command to IUT. IUT should disconnect the channel and kill the session when it receives VIRTUAL_CABLE_UNPLUG command. VIRTUAL_CABLE_UNPLUG is parsed by hidp.ko but it is not scheduled to do so (There is no schedule code). So I have added hidp_schedule to kill the session.

patch has been added to all three trees. Thanks.

Regards

Marcel