diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-04-08 14:40:02 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-04-27 17:51:34 -0400 |
commit | 5d41ce1dd91bce01d50aff79786dc5d5eedcfab7 (patch) | |
tree | 36905721ffdbbc24e13e6d302c9d956b9143da75 /include/net/bluetooth/l2cap.h | |
parent | 828d7d7b19446bf5a40928da47955c575a454c75 (diff) |
Bluetooth: Refactor L2CAP channel allocation
If the allocation happens at l2cap_sock_create() will be able to use the
struct l2cap_chan to store channel info that comes from the user via
setsockopt.
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net/bluetooth/l2cap.h')
-rw-r--r-- | include/net/bluetooth/l2cap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h index 7a215a7f9e39..537e3c16339f 100644 --- a/include/net/bluetooth/l2cap.h +++ b/include/net/bluetooth/l2cap.h | |||
@@ -465,7 +465,8 @@ void l2cap_sock_init(struct sock *sk, struct sock *parent); | |||
465 | struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock, | 465 | struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock, |
466 | int proto, gfp_t prio); | 466 | int proto, gfp_t prio); |
467 | void l2cap_send_disconn_req(struct l2cap_conn *conn, struct l2cap_chan *chan, int err); | 467 | void l2cap_send_disconn_req(struct l2cap_conn *conn, struct l2cap_chan *chan, int err); |
468 | struct l2cap_chan *l2cap_chan_alloc(struct sock *sk); | ||
468 | void l2cap_chan_del(struct l2cap_chan *chan, int err); | 469 | void l2cap_chan_del(struct l2cap_chan *chan, int err); |
469 | int l2cap_do_connect(struct sock *sk); | 470 | int l2cap_do_connect(struct l2cap_chan *chan); |
470 | 471 | ||
471 | #endif /* __L2CAP_H */ | 472 | #endif /* __L2CAP_H */ |