From: Vinicius Costa Gomes Date: Mon, 20 Jun 2011 21:53:18 +0000 (-0300) Subject: Bluetooth: Fix not setting the chan state X-Git-Tag: firefly_0821_release~7613^2~478 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a8eaf8b382a05f714b5527426d476c806802b22d;p=firefly-linux-kernel-4.4.55.git 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: Vinicius Costa Gomes Signed-off-by: Gustavo F. Padovan --- diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 19f4e8dbd46d..d37a50197ddd 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -896,7 +896,7 @@ static void l2cap_chan_ready(struct sock *sk) chan->conf_state = 0; __clear_chan_timer(chan); - sk->sk_state = BT_CONNECTED; + l2cap_state_change(chan, BT_CONNECTED); sk->sk_state_change(sk); if (parent)