aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-03-25 13:16:54 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-04-07 17:06:26 -0400
commit73ffa904b78287f6acf8797e040150aa26a4af4a (patch)
tree9056d6909606d0286bd8ebb5223b37aea0fc2fa5 /include/net/bluetooth
parentfc7f8a7ed4543853a99852ca405ea71fabe78946 (diff)
Bluetooth: Move conf_{req,rsp} stuff to struct l2cap_chan
They are also l2cap_chan specific. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r--include/net/bluetooth/l2cap.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index 81829e5c407d..bf918283712a 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -281,6 +281,11 @@ struct l2cap_chan {
281 struct sock *sk; 281 struct sock *sk;
282 __u8 ident; 282 __u8 ident;
283 283
284 __u8 conf_req[64];
285 __u8 conf_len;
286 __u8 num_conf_req;
287 __u8 num_conf_rsp;
288
284 struct list_head list; 289 struct list_head list;
285}; 290};
286 291
@@ -337,8 +342,6 @@ struct l2cap_pinfo {
337 __u16 omtu; 342 __u16 omtu;
338 __u16 flush_to; 343 __u16 flush_to;
339 __u8 mode; 344 __u8 mode;
340 __u8 num_conf_req;
341 __u8 num_conf_rsp;
342 345
343 __u8 fcs; 346 __u8 fcs;
344 __u8 sec_level; 347 __u8 sec_level;
@@ -346,8 +349,6 @@ struct l2cap_pinfo {
346 __u8 force_reliable; 349 __u8 force_reliable;
347 __u8 flushable; 350 __u8 flushable;
348 351
349 __u8 conf_req[64];
350 __u8 conf_len;
351 __u8 conf_state; 352 __u8 conf_state;
352 __u16 conn_state; 353 __u16 conn_state;
353 354
@@ -447,7 +448,7 @@ void l2cap_cleanup_sockets(void);
447 448
448u8 l2cap_get_ident(struct l2cap_conn *conn); 449u8 l2cap_get_ident(struct l2cap_conn *conn);
449void l2cap_send_cmd(struct l2cap_conn *conn, u8 ident, u8 code, u16 len, void *data); 450void l2cap_send_cmd(struct l2cap_conn *conn, u8 ident, u8 code, u16 len, void *data);
450int l2cap_build_conf_req(struct sock *sk, void *data); 451int l2cap_build_conf_req(struct l2cap_chan *chan, void *data);
451int __l2cap_wait_ack(struct sock *sk); 452int __l2cap_wait_ack(struct sock *sk);
452 453
453struct sk_buff *l2cap_create_connless_pdu(struct sock *sk, struct msghdr *msg, size_t len); 454struct sk_buff *l2cap_create_connless_pdu(struct sock *sk, struct msghdr *msg, size_t len);