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

Commit 43f3dc41 authored by Vinicius Costa Gomes's avatar Vinicius Costa Gomes Committed by Gustavo Padovan
Browse files

Bluetooth: Fix not setting the chan state



When the connection is ready we should set the connection
to CONNECTED so userspace can use it.

Signed-off-by: default avatarVinicius Costa Gomes <vinicius.gomes@openbossa.org>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent 05558911
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -895,7 +895,7 @@ static void l2cap_chan_ready(struct sock *sk)
	chan->conf_state = 0;
	chan->conf_state = 0;
	__clear_chan_timer(chan);
	__clear_chan_timer(chan);


	sk->sk_state = BT_CONNECTED;
	l2cap_state_change(chan, BT_CONNECTED);
	sk->sk_state_change(sk);
	sk->sk_state_change(sk);


	if (parent)
	if (parent)