diff options
author | Vinicius Costa Gomes <vinicius.gomes@openbossa.org> | 2011-06-20 18:53:18 -0300 |
---|---|---|
committer | Jaikumar Ganesh <jaikumar@google.com> | 2011-07-11 11:59:25 -0700 |
commit | a8eaf8b382a05f714b5527426d476c806802b22d (patch) | |
tree | 418329c565958aa0d53b381962faa1b366b38063 /net/bluetooth/l2cap_core.c | |
parent | 43d669e7b68bcf491fbf0fab0a7d7f1536d85fca (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/l2cap_core.c')
-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 19f4e8dbd46..d37a50197dd 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) |