Skip to content

Commit

Permalink
Bluetooth: Fix not setting the chan state
Browse files Browse the repository at this point in the history
When the connection is ready we should set the connection
to CONNECTED so userspace can use it.

Signed-off-by: Vinicius Costa Gomes <[email protected]>
Signed-off-by: Gustavo F. Padovan <[email protected]>
  • Loading branch information
vcgomes authored and Gustavo F. Padovan committed Jun 21, 2011
1 parent 0555891 commit 43f3dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,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)
Expand Down

0 comments on commit 43f3dc4

Please sign in to comment.