Bluetooth: Add state tracking to struct l2cap_chan
authorGustavo F. Padovan <padovan@profusion.mobi>
Fri, 3 Jun 2011 03:19:47 +0000 (00:19 -0300)
committerJaikumar Ganesh <jaikumar@google.com>
Mon, 11 Jul 2011 18:59:19 +0000 (11:59 -0700)
commitf1b394acd99a6e2919e2c61481abf0a12804a143
treec8566e6c6b0172d4bba30eb57da8d012958efa9a
parentc4cf743414819597b2f5565c64e6b72c04e6122e
Bluetooth: Add state tracking to struct l2cap_chan

Now socket state is tracked by struct sock and channel state is tracked by
chan->state. At this point both says the same, but this is going to change
when we add AMP Support for example.

Change-Id: Idbf873f5e8dd94f5b2482ba960c52193d28ce5dd
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
include/net/bluetooth/l2cap.h
net/bluetooth/l2cap_core.c
net/bluetooth/l2cap_sock.c