diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-04-13 19:23:55 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-04-28 00:10:00 -0400 |
commit | 8c1d787be4b62d2d1b6f04953eca4bcf7c839d44 (patch) | |
tree | e2a35c5cb81cc5109c13c2747b039fa05ea55a6e /include/net/bluetooth | |
parent | fe4128e0aabc3c748786c00da21e6eff9d3aeddb (diff) |
Bluetooth: Move conn to struct l2cap_chan
There is no need to the socket deal directly with the channel, most of the
time it cares about the channel only.
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r-- | include/net/bluetooth/l2cap.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h index fd199cda752c..3de90a91a4e4 100644 --- a/include/net/bluetooth/l2cap.h +++ b/include/net/bluetooth/l2cap.h | |||
@@ -284,6 +284,9 @@ struct srej_list { | |||
284 | 284 | ||
285 | struct l2cap_chan { | 285 | struct l2cap_chan { |
286 | struct sock *sk; | 286 | struct sock *sk; |
287 | |||
288 | struct l2cap_conn *conn; | ||
289 | |||
287 | __le16 psm; | 290 | __le16 psm; |
288 | __u16 dcid; | 291 | __u16 dcid; |
289 | __u16 scid; | 292 | __u16 scid; |
@@ -385,8 +388,6 @@ struct l2cap_conn { | |||
385 | 388 | ||
386 | struct l2cap_pinfo { | 389 | struct l2cap_pinfo { |
387 | struct bt_sock bt; | 390 | struct bt_sock bt; |
388 | |||
389 | struct l2cap_conn *conn; | ||
390 | struct l2cap_chan *chan; | 391 | struct l2cap_chan *chan; |
391 | }; | 392 | }; |
392 | 393 | ||
@@ -447,7 +448,7 @@ int l2cap_init_sockets(void); | |||
447 | void l2cap_cleanup_sockets(void); | 448 | void l2cap_cleanup_sockets(void); |
448 | 449 | ||
449 | void l2cap_send_cmd(struct l2cap_conn *conn, u8 ident, u8 code, u16 len, void *data); | 450 | void l2cap_send_cmd(struct l2cap_conn *conn, u8 ident, u8 code, u16 len, void *data); |
450 | void __l2cap_connect_rsp_defer(struct sock *sk); | 451 | void __l2cap_connect_rsp_defer(struct l2cap_chan *chan); |
451 | int __l2cap_wait_ack(struct sock *sk); | 452 | int __l2cap_wait_ack(struct sock *sk); |
452 | 453 | ||
453 | struct sk_buff *l2cap_create_connless_pdu(struct l2cap_chan *chan, struct msghdr *msg, size_t len); | 454 | struct sk_buff *l2cap_create_connless_pdu(struct l2cap_chan *chan, struct msghdr *msg, size_t len); |