Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e86070c8 authored by Marcel Holtmann's avatar Marcel Holtmann Committed by David S. Miller
Browse files

[Bluetooth] Disconnect HID interrupt channel first



The Bluetooth HID specification demands that the interrupt channel
shall be disconnected first. This is needed to pass the qualification
tests.

Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 4c67bc74
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -510,11 +510,11 @@ static int hidp_session(void *arg)
	if (intr_sk->sk_state != BT_CONNECTED)
		wait_event_timeout(*(ctrl_sk->sk_sleep), (ctrl_sk->sk_state == BT_CLOSED), HZ);

	fput(session->ctrl_sock->file);
	fput(session->intr_sock->file);

	wait_event_timeout(*(intr_sk->sk_sleep), (intr_sk->sk_state == BT_CLOSED), HZ);

	fput(session->intr_sock->file);
	fput(session->ctrl_sock->file);

	__hidp_unlink_session(session);