summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-06-03 00:19:47 -0300
committerJaikumar Ganesh <jaikumar@google.com>2011-07-11 11:59:19 -0700
commitf1b394acd99a6e2919e2c61481abf0a12804a143 (patch)
treec8566e6c6b0172d4bba30eb57da8d012958efa9a /include/net
parentc4cf743414819597b2f5565c64e6b72c04e6122e (diff)
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>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/bluetooth/l2cap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index 0ad61d06968..68c87244eaf 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -287,6 +287,8 @@ struct l2cap_chan {
struct l2cap_conn *conn;
+ __u8 state;
+
__le16 psm;
__u16 dcid;
__u16 scid;
@@ -365,6 +367,7 @@ struct l2cap_ops {
struct l2cap_chan *(*new_connection) (void *data);
int (*recv) (void *data, struct sk_buff *skb);
void (*close) (void *data);
+ void (*state_change) (void *data, int state);
};
struct l2cap_conn {