diff options
author | Vinicius Costa Gomes <vinicius.gomes@openbossa.org> | 2011-06-20 17:53:18 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-06-21 13:55:04 -0400 |
commit | 43f3dc41571c47a1fbded9aca1cf0a737967b005 (patch) | |
tree | 9cf244322161d640cfab62c50a86b3b80605d938 /net/bluetooth | |
parent | 0555891184a5c18df0e2349872e7ecf9701fc5b5 (diff) |
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 <vinicius.gomes@openbossa.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/l2cap_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index ba0b2f47bab8..9ec9c8c5eb5e 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c | |||
@@ -895,7 +895,7 @@ static void l2cap_chan_ready(struct sock *sk) | |||
895 | chan->conf_state = 0; | 895 | chan->conf_state = 0; |
896 | __clear_chan_timer(chan); | 896 | __clear_chan_timer(chan); |
897 | 897 | ||
898 | sk->sk_state = BT_CONNECTED; | 898 | l2cap_state_change(chan, BT_CONNECTED); |
899 | sk->sk_state_change(sk); | 899 | sk->sk_state_change(sk); |
900 | 900 | ||
901 | if (parent) | 901 | if (parent) |