mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
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. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
This commit is contained in:
parent
ba3bd0ee39
commit
89bc500e41
3 changed files with 74 additions and 54 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue