[PATCH] android/hidhost: Don't disconnect channels after sending virtual unplug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It is up to receipient to acknowledge this command by disconnecting
L2CAP.

This was affecting TC_HOS_HCR_BV_03_I qualification test case.
---
 android/hidhost.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/android/hidhost.c b/android/hidhost.c
index 81e7eb8..5ea7c5a 100644
--- a/android/hidhost.c
+++ b/android/hidhost.c
@@ -887,14 +887,10 @@ static void bt_hid_virtual_unplug(const void *buf, uint16_t len)
 		goto failed;
 	}
 
-	/* Wait either channels to HUP */
-	if (dev->intr_io)
-		g_io_channel_shutdown(dev->intr_io, TRUE, NULL);
-
-	if (dev->ctrl_io)
-		g_io_channel_shutdown(dev->ctrl_io, TRUE, NULL);
-
-	bt_hid_notify_state(dev, HAL_HIDHOST_STATE_DISCONNECTING);
+	/* Remote device shall disconnect to ack this command
+	 * TODO add disconnect guard timer or leave this to upper layer?
+	 * TODO remove bonding or leave this to upper layer?
+	 */
 
 	status = HAL_STATUS_SUCCESS;
 
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux